thelounge/src/plugins/inputs/connect.js

13 lines
206 B
JavaScript
Raw Normal View History

exports.commands = ["connect", "server"];
2016-03-06 10:24:56 +01:00
exports.input = function(network, chan, cmd, args) {
2014-09-13 23:29:45 +02:00
if (args.length !== 0) {
var client = this;
client.connect({
host: args[0]
});
}
2016-03-06 10:24:56 +01:00
return true;
2014-09-13 23:29:45 +02:00
};