Shuo/lib/plugins/inputs/connect.js

12 lines
217 B
JavaScript

module.exports = function(network, chan, cmd, args) {
if (cmd != "connect" && cmd != "server") {
return;
}
if (args.length !== 0) {
var client = this;
client.connect({
host: args[0]
});
}
};