thelounge/lib/plugins/inputs/part.js
2014-07-03 00:00:20 +02:00

10 lines
202 B
JavaScript

module.exports = function(network, chan, cmd, args) {
if (cmd != "part") {
return;
}
var irc = network.irc;
if (args.length === 0) {
args.push("#" + chan.name);
}
irc.part(args);
};