On emit

From Botnix

on_emit

This subroutine is called whenever any module (even your own module) calls the emit() function. It is down to the receiving module to determine if it should act upon the emitted data or not, based upon the $eventid value.

Parameters:

  • $self - Module name
  • $source - Name of module to emit the event
  • $eventid - Event id - Should be unique to the module which emit()ed it
  • @parameters - Event dependent parameters, see the documentation of the module which emitted the event for more information