From f908db7b3b2b8017138598464367dc8694a82961 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 20 Jan 2013 18:12:23 +0000 Subject: [PATCH] that should fix [#164] --- modules/users/commands.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/users/commands.js b/modules/users/commands.js index 8581d77..c0cbc7b 100644 --- a/modules/users/commands.js +++ b/modules/users/commands.js @@ -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