instance method IRC#on
IRC#on( event, listener ) → null
-
event(String) – Event to listen for -
listener(Function) – Event listener, called when event is emitted.
Listen for incoming IRC messages.
Examples
irc_instance.on( 'ping', pingListener ) // Listens for the PING message from server
Aliased as: IRC#addListener