3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

Derp. Had 'tirm' instead of 'trim'.

This commit is contained in:
Alexander D Brown 2011-11-10 19:05:19 +00:00
parent 35679ac19e
commit 0784e2c5be

2
run.js
View File

@ -100,7 +100,7 @@ DBot.prototype.reloadModules = function() {
} else {
var q = data.message.valMatch(/^~([\d\w\s]*)/, 2);
if(q) {
q[1] = q[1].tirm();
q[1] = q[1].trim();
key = q[1].toLowerCase();
if(this.db.quoteArrs.hasOwnProperty(key)) {
this.say(data.channel, q[1] + ': ' + this.db.quoteArrs[key].random());