From d714b2c0be1126839db49a1e366aee845dad6963 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 20 Oct 2013 18:57:15 +0000 Subject: [PATCH] lowercase all ~word related input --- modules/sstats/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/sstats/commands.js b/modules/sstats/commands.js index e32e79e..ba0dc5d 100644 --- a/modules/sstats/commands.js +++ b/modules/sstats/commands.js @@ -187,7 +187,7 @@ var commands = function(dbot) { }, '~word': function(event) { - var word = event.params[1].trim(); + var word = event.params[1].trim().toLowerCase(); this.api.getTrackedWord(word, function(tWord) { if(tWord) { event.reply(dbot.t('sstats_word', { @@ -205,7 +205,7 @@ var commands = function(dbot) { // merge to some raw highscore thing '~wordusers': function(event) { - var word = event.params[1].trim(); + var word = event.params[1].trim().toLowerCase(); this.api.getTrackedWord(word, function(tWord) { if(tWord) { var pCounts = _.chain(tWord.users)