Fix autojoining and allow autojoing with keys

Syntax is like "#a,#b,#c keya,keyb"
This commit is contained in:
Pavel Djundik 2016-03-16 23:49:45 +02:00 committed by Maxime Poulin
parent 17bcc37b80
commit b19e79c48f

View File

@ -204,8 +204,8 @@ Client.prototype.connect = function(args) {
var join = (args.join || ""); var join = (args.join || "");
if (join) { if (join) {
setTimeout(function() { setTimeout(function() {
join = join.replace(/\,/g, " ").split(/\s+/g); join = join.split(/\s+/);
network.irc.join(join); network.irc.join(join[0], join[1]);
}, delay); }, delay);
} }
}); });