Emit
From Botnix
emit
main::emit(modulename,eventid,parameters)
Emit an event. The parameters may be any arbitary scalars or references you wish to pass. This is provided as a form of inter-module communication. When an event is emitted, all other modules which handle the on_emit event will receive it. Modules which recognise your eventid may then act upon the parameters. For example, a module which handles channel floods may emit an event when the channel is flooded, and other modules may act upon the emission of the flood event, and perform extra actions. The modulename parameter should contain the namespace name of your module (usually in the form a::b::c, from the $self parameter to most events), which other modules can use to determine which module sent the data to them. The eventid should be unique within your module, the modulename parameter preventing clashes with other modules that might use the same event id.

