getAllUsers

This commit is contained in:
reality 2013-01-22 00:24:12 +00:00
parent b107f64efc
commit 3b3aa280e0

View File

@ -40,6 +40,10 @@ var api = function(dbot) {
return dbot.db.knownUsers[server].users;
},
'getAllUsers': function() {
return _.pluck(dbot.db.knownUsers, 'users');
},
'isKnownUser': function(server, nick) {
var knownUsers = this.getServerUsers(server);
return (_.include(knownUsers.users, nick) || _.has(knownUsers.aliases, nick));