hardlounge/lib/plugins/inputs/connect.js

12 lines
217 B
JavaScript
Raw Normal View History

2014-07-02 22:00:11 +00:00
module.exports = function(network, chan, cmd, args) {
2014-07-06 15:22:43 +00:00
if (cmd != "connect" && cmd != "server") {
return;
}
if (args.length !== 0) {
var client = this;
client.connect({
host: args[0]
});
}
2014-07-02 22:00:11 +00:00
};