Shuo/lib/plugins/inputs/join.js

10 lines
185 B
JavaScript
Raw Normal View History

2014-07-02 22:00:11 +00:00
module.exports = function(network, chan, cmd, args) {
if (cmd != "join") {
return;
2014-07-02 22:00:11 +00:00
}
if (args.length !== 0) {
2014-07-02 22:00:11 +00:00
var irc = network.irc;
2014-07-16 14:47:42 +00:00
irc.join(args[0], args[1]);
2014-07-02 22:00:11 +00:00
}
2014-06-26 23:05:47 +00:00
};