away plugin

events

away

The away event, fired when an IRC AWAY event is received.

Event attributes:

  • user - A User object of the user that changed away status.
  • message - The message of the AWAY user’s AWAY status (away message).

Example:

client.on('away', function (err, event) {
  console.log(event.user.getNick() + ' is now away: ' + event.message);
});

functions

away(reason, network, fn)
Arguments:
  • reason (string) – The reason to be away (away message).
  • network (object) – The network to execute the command on.
  • fn (function) – The callback function to be called when the call has been finished.

Sets the client as away on network with an away message (reason).