Support keys for auto-join
This commit is contained in:
parent
fca95d9b79
commit
76b68f7f7a
@ -99,9 +99,13 @@ function connect(params) {
|
|||||||
|
|
||||||
client.nick(params.nick);
|
client.nick(params.nick);
|
||||||
client.user(params.nick, params.realname);
|
client.user(params.nick, params.realname);
|
||||||
|
|
||||||
client.once("welcome", function() {
|
client.once("welcome", function() {
|
||||||
(params.channels || []).forEach(function(c) {
|
(params.channels || []).forEach(function(c) {
|
||||||
client.join(c);
|
client.join.apply(
|
||||||
|
client,
|
||||||
|
c.split(' ')
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user