From 35679ac19e34444d74973b4392629fe161d53d85 Mon Sep 17 00:00:00 2001 From: Alexander D Brown Date: Thu, 10 Nov 2011 18:59:25 +0000 Subject: [PATCH] Forgot the widly used ~keyname syntax in run.js --- run.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/run.js b/run.js index 109701c..024c015 100644 --- a/run.js +++ b/run.js @@ -100,11 +100,12 @@ DBot.prototype.reloadModules = function() { } else { var q = data.message.valMatch(/^~([\d\w\s]*)/, 2); if(q) { - key = q[1].trim().toLowerCase(); + q[1] = q[1].tirm(); + key = q[1].toLowerCase(); if(this.db.quoteArrs.hasOwnProperty(key)) { - this.say(data.channel, key + ': ' + this.db.quoteArrs[key].random()); + this.say(data.channel, q[1] + ': ' + this.db.quoteArrs[key].random()); } else { - this.say(data.channel, 'Nobody loves ' + key); + this.say(data.channel, 'Nobody loves ' + q[1]); } } }