diff --git a/modules/users/users.js b/modules/users/users.js index 6037f2a..0948719 100644 --- a/modules/users/users.js +++ b/modules/users/users.js @@ -10,6 +10,9 @@ var users = function(dbot) { if(!knownUsers.hasOwnProperty(server)) { knownUsers[server] = { 'users': [], 'aliases': {}, 'channelUsers': {} }; } + if(!knownUsers[server].hasOwnProperty('channelUsers')) { + knownUsers[server].channelUsers = {}; + } return knownUsers[server]; };