forked from GitHub/dbot
that should do it
This commit is contained in:
parent
80fec7b212
commit
b940b6f913
@ -41,7 +41,9 @@ var api = function(dbot) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'getAllUsers': function() {
|
'getAllUsers': function() {
|
||||||
return _.pluck(dbot.db.knownUsers, 'users');
|
return _.reduce(dbot.db.knownUsers, function(memo, function(server, name) {
|
||||||
|
memo[name] = server.users;
|
||||||
|
}, {}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
'isKnownUser': function(server, nick) {
|
'isKnownUser': function(server, nick) {
|
||||||
|
Loading…
Reference in New Issue
Block a user