From 76b68f7f7a444cfc377dc16ef8f93382c85a08d0 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Fri, 13 Jun 2014 16:45:32 +0200 Subject: [PATCH] Support keys for auto-join --- lib/server.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(' ') + ); }); });