2016-03-14 04:21:42 +00:00
|
|
|
exports.commands = ["connect", "server"];
|
2016-04-03 09:58:59 +00:00
|
|
|
exports.allowDisconnected = true;
|
2016-03-06 09:24:56 +00:00
|
|
|
|
2016-03-14 04:21:42 +00:00
|
|
|
exports.input = function(network, chan, cmd, args) {
|
2016-03-20 17:35:20 +00:00
|
|
|
if (args.length === 0) {
|
|
|
|
return;
|
2014-09-13 21:29:45 +00:00
|
|
|
}
|
2016-03-06 09:24:56 +00:00
|
|
|
|
2016-03-20 17:35:20 +00:00
|
|
|
var port = args[1] || "";
|
|
|
|
var tls = port[0] === "+";
|
|
|
|
|
|
|
|
if (tls) {
|
|
|
|
port = port.substring(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
this.connect({
|
|
|
|
host: args[0],
|
|
|
|
port: port,
|
|
|
|
tls: tls,
|
|
|
|
});
|
|
|
|
|
2016-03-06 09:24:56 +00:00
|
|
|
return true;
|
2014-09-13 21:29:45 +00:00
|
|
|
};
|