thelounge/lib/plugins/inputs/part.js
2014-07-04 00:49:15 +02:00

10 lines
196 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);
};