mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
Fixed mis-variable-naming in ~qcount
This commit is contained in:
parent
522a1d9f69
commit
3c5036fef4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user