diff --git a/src/plugins/inputs/quit.js b/src/plugins/inputs/quit.js index 7155b754..cf01d728 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); };