From 25b6099fbd3db4c0873c3c8bc6c057bc0b5f245c Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 21 Mar 2013 03:41:53 -0400 Subject: [PATCH] fix error on ~rmlast when category doesn't exist --- modules/quotes/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes/commands.js b/modules/quotes/commands.js index 336f89d..608b159 100644 --- a/modules/quotes/commands.js +++ b/modules/quotes/commands.js @@ -110,7 +110,7 @@ var commands = function(dbot) { 'category': key })); } else { - event.reply(dbot.t('no_quotes', {'category': q[1]})); + event.reply(dbot.t('no_quotes', {'category': key})); } } else { event.reply(dbot.t('rmlast_spam'));