forked from GitHub/dbot
that should fix [#164]
This commit is contained in:
parent
9cb07dbfba
commit
f908db7b3b
@ -7,10 +7,7 @@ var commands = function(dbot) {
|
||||
alias = event.params[1].trim();
|
||||
|
||||
if(_.include(knownUsers.users, alias)) {
|
||||
var aliasCount = _.reduce(knownUsers.aliases, function(memo, user) {
|
||||
if(user == alias) return memo += 1;
|
||||
}, 0, this);
|
||||
|
||||
var aliasCount = this.api.getAliases(event.server, alias).length;
|
||||
event.reply(dbot.t('primary', {
|
||||
'user': alias,
|
||||
'count': aliasCount
|
||||
|
Loading…
Reference in New Issue
Block a user