diff --git a/modules/karma/karma.js b/modules/karma/karma.js index b9485e0..e72bb17 100644 --- a/modules/karma/karma.js +++ b/modules/karma/karma.js @@ -98,7 +98,7 @@ var karma = function(dbot) { this.listener = function(event) { var match = event.message.match(/^(.+)(\+\+|\-\-)$/); - if(match) { + if(match && match[1].length < 25) { 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 : - )');