server plugins¶
events¶
-
quit
¶
The quit
event, fired when the QUIT
command is received from
the server. When this is fired someone has quit from the irc network.
Event attributes:
user
: The affected user.message
: The quit message.
client.on('quit', function (event) {
console.log(event.user.getNick() + " quit: " + event.message);
});
functions¶
-
quit(message, network)
¶ Param string message: The reason you want to show to others about why you quit. Param string network: The network to execute the command on. Param function fn: The callback function to be called when the call has been finished.
Quit from the server.
Example:
client.quit("bye", event.network); // usage in an event listener
client.quit("bye", "freenode"); // send to specific network
client.quit("bye"); // send to all networks
-
getServerInfo(network)
¶ Param string network: The network to execute the command on. Returns object serverInfo: The server info about the network.
Get info about a network.
Example:
var info = client.getServerInfo(event.network); // usage in an event listener
var info = client.getServerInfo("freenode"); // send to specific network