From 6ed1a70f1cc37573ebac7609dc85e99806e01812 Mon Sep 17 00:00:00 2001 From: Kerry Peterson Date: Tue, 16 Sep 2014 19:46:14 -0600 Subject: [PATCH] Added custom quit message functionality. Resolves erming/shout#71 --- src/plugins/inputs/quit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/inputs/quit.js b/src/plugins/inputs/quit.js index 7155b75..cf01d72 100644 --- a/src/plugins/inputs/quit.js +++ b/src/plugins/inputs/quit.js @@ -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); };