other plugins

events

errors

The errors event, fired when IRC errors are received. List of possible errors: https://github.com/williamwicks/irc-replies/blob/master/replies.json#L113-L170

Event attributes:

  • None

Example:

client.on('errors', function (err, event) {
  console.error('IRC Error:', err);
});

functions

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

Sends an IRC PASS command to the network with the specified password (pass)

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

Sends an IRC USER command to the network with the specified username (username) and realname (realname).

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

Sends an IRC OPER command and tries to oper to the network with the specified name (name) and password (password).