diff --git a/lib/server.js b/lib/server.js index b7b8aab2..aeac12a2 100644 --- a/lib/server.js +++ b/lib/server.js @@ -99,9 +99,13 @@ function connect(params) { client.nick(params.nick); client.user(params.nick, params.realname); + client.once("welcome", function() { (params.channels || []).forEach(function(c) { - client.join(c); + client.join.apply( + client, + c.split(' ') + ); }); });