From 03f58bf9067f026995928ba5f04ce7c98ac75755 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 9 Jan 2013 06:12:04 +0000 Subject: [PATCH] correct missing channel users --- modules/users/users.js | 3 +++ 1 file changed, 3 insertions(+) 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]; };