From 38c18366a35a9524772fa99cabbf854b3cc8b160 Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 12 Apr 2013 17:42:11 +0000 Subject: [PATCH] Stop command execution syntax running if line is not a command. Note [#337] was fixed a few commits ago too. --- modules/command/command.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/command/command.js b/modules/command/command.js index df14456..5a7ccee 100644 --- a/modules/command/command.js +++ b/modules/command/command.js @@ -13,6 +13,9 @@ var command = function(dbot) { */ this.listener = function(event) { var commandName = event.params[0]; + if(commandName.charAt(0) != '~') { + return; + } if(!_.has(dbot.commands, commandName)) { if(_.has(dbot.modules, 'quotes')) { commandName = '~';