correct missing channel users

This commit is contained in:
reality 2013-01-09 06:12:04 +00:00
parent 08f35f90f8
commit 03f58bf906

View File

@ -10,6 +10,9 @@ var users = function(dbot) {
if(!knownUsers.hasOwnProperty(server)) { if(!knownUsers.hasOwnProperty(server)) {
knownUsers[server] = { 'users': [], 'aliases': {}, 'channelUsers': {} }; knownUsers[server] = { 'users': [], 'aliases': {}, 'channelUsers': {} };
} }
if(!knownUsers[server].hasOwnProperty('channelUsers')) {
knownUsers[server].channelUsers = {};
}
return knownUsers[server]; return knownUsers[server];
}; };