From 2d1cfdd5675d53490832f05cd4478112cb8c9e5f Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 11 Feb 2015 22:24:53 +0000 Subject: [PATCH] no more : --- modules/karma/karma.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/karma/karma.js b/modules/karma/karma.js index 77e10e1..b9485e0 100644 --- a/modules/karma/karma.js +++ b/modules/karma/karma.js @@ -99,7 +99,7 @@ var karma = function(dbot) { this.listener = function(event) { var match = event.message.match(/^(.+)(\+\+|\-\-)$/); if(match) { - match[1] = match[1].replace(/(\+|\-)/g,'').trim(); + match[1] = match[1].replace(/(\+|\-)/g,'').replace(/:/g,'').trim(); if(_.has(this.lastKarma, event.rUser.id) && this.lastKarma[event.rUser.id] + 5000 > Date.now()) { return event.reply('Try again in a few seconds : - )'); } else if(event.rUser.currentNick.toLowerCase === match[1].toLowerCase() || event.rUser.primaryNick.toLowerCase() === match[1].toLowerCase()) {