mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
that should do it
This commit is contained in:
parent
80fec7b212
commit
b940b6f913
@ -41,7 +41,9 @@ var api = function(dbot) {
|
||||
},
|
||||
|
||||
'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) {
|
||||
|
Loading…
Reference in New Issue
Block a user