trigger updateNickLists to update knownUsers on module load

This commit is contained in:
reality 2012-12-23 16:46:33 +00:00
parent 0f6aadc07b
commit 2bc0bbc439
2 changed files with 12 additions and 2 deletions

2
jsbot

@ -1 +1 @@
Subproject commit 00157e15c9f15e8fcb343c924978616bb6315ee7
Subproject commit f050c93f22e56ad98f245f7ba8b444208c4de6f8

View File

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