Support keys for auto-join

This commit is contained in:
Mattias Erming 2014-06-13 16:45:32 +02:00
parent fca95d9b79
commit 76b68f7f7a

View File

@ -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(' ')
);
});
});