mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Support keys for auto-join
This commit is contained in:
parent
fca95d9b79
commit
76b68f7f7a
1 changed files with 5 additions and 1 deletions
|
@ -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(' ')
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue