3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

Fixed mis-variable-naming in ~qcount

This commit is contained in:
Luke Slater 2011-08-28 17:24:48 +01:00
parent 522a1d9f69
commit 3c5036fef4

View File

@ -17,7 +17,7 @@ var quotes = function(dbot) {
'~qcount': function(data, params) {
var q = data.message.valMatch(/^~qcount ([\d\w\s]*)/, 2);
if(q) {
key = key[1].trim().toLowerCase();
key = q[1].trim().toLowerCase();
if(quotes.hasOwnProperty(key)) {
dbot.say(data.channel, key + ' has ' + quotes[key].length + ' quotes.');
} else {