From 0ff2a43c077a5ea44d4a15a12b442d6b165ea2b7 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 14 Jan 2013 16:47:48 +0000 Subject: [PATCH] command can stand being run without quotes! --- modules/command/command.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/command/command.js b/modules/command/command.js index c6690cf..4812b4a 100644 --- a/modules/command/command.js +++ b/modules/command/command.js @@ -16,9 +16,13 @@ var command = function(dbot) { this.listener = function(event) { var commandName = event.params[0]; if(!_.has(dbot.commands, commandName)) { - commandName = '~'; - } - + if(_.has(dbot.modules, 'quotes')) { + commandName = '~'; + } else { + return; + } + } + if(this.api.isBanned(event.user, commandName)) { event.reply(dbot.t('command_ban', {'user': event.user})); } else {