Merge pull request #222 from maxpoulin64/fix-part

Fix /part command
This commit is contained in:
Pavel Djundik 2016-03-27 01:27:54 +02:00
commit 05ec819f2d

View File

@ -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);