hardlounge/lib/plugins/inputs/part.js

11 lines
196 B
JavaScript
Raw Normal View History

2014-07-02 22:00:11 +00:00
module.exports = function(network, chan, cmd, args) {
if (cmd != "part") {
return;
}
var irc = network.irc;
if (args.length === 0) {
args.push(chan.name);
2014-07-02 22:00:11 +00:00
}
irc.part(args);
2014-06-26 23:05:47 +00:00
};