From 05e6d084b51c060b4493b782919f3048c7ba8d59 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 20 Jan 2013 18:19:44 +0000 Subject: [PATCH] add some including --- modules/users/commands.js | 13 +++++++++++-- modules/users/strings.json | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/modules/users/commands.js b/modules/users/commands.js index c0cbc7b..87d3257 100644 --- a/modules/users/commands.js +++ b/modules/users/commands.js @@ -7,11 +7,20 @@ var commands = function(dbot) { alias = event.params[1].trim(); if(_.include(knownUsers.users, alias)) { - var aliasCount = this.api.getAliases(event.server, alias).length; + 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