thelounge/src/plugins/inputs/connect.js

12 lines
208 B
JavaScript
Raw Normal View History

2014-09-13 23:29:45 +02:00
module.exports = function(network, chan, cmd, args) {
2015-10-01 00:39:57 +02:00
if (cmd !== "connect" && cmd !== "server") {
2014-09-13 23:29:45 +02:00
return;
}
if (args.length !== 0) {
var client = this;
client.connect({
host: args[0]
});
}
};