diff --git a/jsbot b/jsbot index 00157e1..f050c93 160000 --- a/jsbot +++ b/jsbot @@ -1 +1 @@ -Subproject commit 00157e15c9f15e8fcb343c924978616bb6315ee7 +Subproject commit f050c93f22e56ad98f245f7ba8b444208c4de6f8 diff --git a/modules/users/users.js b/modules/users/users.js index f953e1f..5dfd216 100644 --- a/modules/users/users.js +++ b/modules/users/users.js @@ -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(); + } + } + } }; };