Merge pull request #156 from dremex/custom-quit-message
Added custom quit message functionality. Resolves erming/shout#71
This commit is contained in:
commit
69af79a635
|
@ -7,11 +7,12 @@ module.exports = function(network, chan, cmd, args) {
|
||||||
|
|
||||||
var client = this;
|
var client = this;
|
||||||
var irc = network.irc;
|
var irc = network.irc;
|
||||||
|
var quitMessage = args[0] ? args.join(" ") : "";
|
||||||
|
|
||||||
client.networks = _.without(client.networks, network);
|
client.networks = _.without(client.networks, network);
|
||||||
client.emit("quit", {
|
client.emit("quit", {
|
||||||
network: network.id
|
network: network.id
|
||||||
});
|
});
|
||||||
|
|
||||||
irc.quit();
|
irc.quit(quitMessage);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue