From 164ec47337fa0c4e43cff2145b2732a8e019e8d0 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 4 Feb 2015 16:38:56 +0000 Subject: [PATCH] fix thing +_+++++ --- modules/karma/karma.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/karma/karma.js b/modules/karma/karma.js index a82158d..9581250 100644 --- a/modules/karma/karma.js +++ b/modules/karma/karma.js @@ -45,6 +45,7 @@ var karma = function(dbot) { this.listener = function(event) { var match = event.message.match(/^(.+)(\+\+|\-\-)$/); if(match) { + match[1] = match[1].replace(/(\+|\-)/g,''); if(_.has(this.lastKarma, event.rUser.id) && this.lastKarma[event.rUser.id] + 5000 > Date.now()) { return event.reply('Try again in a few seconds : - )'); }