forked from GitHub/dbot
trigger updateNickLists to update knownUsers on module load
This commit is contained in:
parent
0f6aadc07b
commit
2bc0bbc439
2
jsbot
2
jsbot
@ -1 +1 @@
|
||||
Subproject commit 00157e15c9f15e8fcb343c924978616bb6315ee7
|
||||
Subproject commit f050c93f22e56ad98f245f7ba8b444208c4de6f8
|
@ -35,7 +35,17 @@ var users = function(dbot) {
|
||||
chanUsers.push(event.user);
|
||||
}
|
||||
},
|
||||
'on': 'JOIN'
|
||||
'on': 'JOIN',
|
||||
|
||||
'onLoad': function() {
|
||||
// Trigger updateNickLists to stat current users in channel
|
||||
var connections = dbot.instance.connections;
|
||||
for(var conn in connections) {
|
||||
if(connections.hasOwnProperty(conn)) {
|
||||
connections[conn].updateNickLists();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user