From eb104f157b35fe36ad2b547fdfea5207082e29ae Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 20 Jan 2013 18:26:07 +0000 Subject: [PATCH] dont show including if no aliases --- modules/users/commands.js | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/modules/users/commands.js b/modules/users/commands.js index 137d1de..32c5867 100644 --- a/modules/users/commands.js +++ b/modules/users/commands.js @@ -10,17 +10,24 @@ var commands = function(dbot) { var aliases = this.api.getAliases(event.server, alias); var aliasCount = aliases.length; - var aliases = _.first(aliases, 10); - var including = 'including: '; - for(var i=0;i