forked from GitHub/dbot
fixing stylistic stuff on ~alias. should close reality/depressionbot#295
This commit is contained in:
parent
ffeb42dde3
commit
d9a03d03b6
@ -12,11 +12,7 @@ var commands = function(dbot) {
|
||||
|
||||
if(aliasCount != 0) {
|
||||
var aliases = _.first(aliases, 10);
|
||||
var including = 'including: ';
|
||||
for(var i=0;i<aliases.length;i++) {
|
||||
including += aliases[i] + ', ';
|
||||
}
|
||||
including = including.slice(0, -2) + '.';
|
||||
var including = 'including: ' + aliases.join(', ') + '.';
|
||||
|
||||
event.reply(dbot.t('primary', {
|
||||
'user': alias,
|
||||
@ -26,7 +22,7 @@ var commands = function(dbot) {
|
||||
event.reply(dbot.t('primary', {
|
||||
'user': alias,
|
||||
'count': aliasCount
|
||||
}));
|
||||
}).slice(0, -2) + ".");
|
||||
}
|
||||
} else if(_.has(knownUsers.aliases, alias)) {
|
||||
event.reply(dbot.t('alias', {
|
||||
|
Loading…
Reference in New Issue
Block a user