mirror of
https://github.com/thelounge/thelounge
synced 2024-11-30 07:50:34 +00:00
Save user when parting channels
This commit is contained in:
parent
a3c1127755
commit
4585583ebc
1 changed files with 8 additions and 5 deletions
|
@ -13,15 +13,18 @@ exports.input = function(network, chan, cmd, args) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var irc = network.irc;
|
|
||||||
if (irc && chan.type === "channel") {
|
|
||||||
irc.part(chan.name, args.join(" "));
|
|
||||||
}
|
|
||||||
|
|
||||||
network.channels = _.without(network.channels, chan);
|
network.channels = _.without(network.channels, chan);
|
||||||
this.emit("part", {
|
this.emit("part", {
|
||||||
chan: chan.id
|
chan: chan.id
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (chan.type === "channel") {
|
||||||
|
this.save();
|
||||||
|
|
||||||
|
if (network.irc) {
|
||||||
|
network.irc.part(chan.name, args.join(" "));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue