From d5e67d650362de16a48ad02b702b85f5e6b5a68e Mon Sep 17 00:00:00 2001 From: Maxime Poulin Date: Sat, 26 Mar 2016 16:13:34 -0400 Subject: [PATCH] Fix /part command Fixes the /part command closing the wrong window. The current implementation simply passes all arguments to slate, which ended up parting every arguments. This changes the command to `/part message`, and always parts the current window. This will be fixed further once irc-framework is merged. --- src/plugins/inputs/part.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/inputs/part.js b/src/plugins/inputs/part.js index 49857158..d8701544 100644 --- a/src/plugins/inputs/part.js +++ b/src/plugins/inputs/part.js @@ -17,10 +17,7 @@ exports.input = function(network, chan, cmd, args) { if (chan.type === "channel") { var irc = network.irc; - if (args.length === 0) { - args.push(chan.name); - } - irc.part(args); + irc.part(chan.name, args.join(" ")); } network.channels = _.without(network.channels, chan);