mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Added custom quit message functionality. Resolves erming/shout#71
This commit is contained in:
parent
044b61be29
commit
6ed1a70f1c
1 changed files with 2 additions and 1 deletions
|
@ -7,11 +7,12 @@ module.exports = function(network, chan, cmd, args) {
|
|||
|
||||
var client = this;
|
||||
var irc = network.irc;
|
||||
var quitMessage = args[0] ? args.join(" ") : "";
|
||||
|
||||
client.networks = _.without(client.networks, network);
|
||||
client.emit("quit", {
|
||||
network: network.id
|
||||
});
|
||||
|
||||
irc.quit();
|
||||
irc.quit(quitMessage);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue