mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 06:20:26 +00:00
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.
This commit is contained in:
parent
7ee7dc79f0
commit
d5e67d6503
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue