From aa72af38678535bed0db56255e4daa5a2920c768 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 23 May 2012 18:50:21 +0100 Subject: [PATCH] Don't error if regex syntax is invalid for ~ default. --- modules/command.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/command.js b/modules/command.js index 49a51f4..6c6c118 100644 --- a/modules/command.js +++ b/modules/command.js @@ -69,7 +69,9 @@ var command = function(dbot) { dbot.commands[commandName](event); dbot.save(); } else { - event.reply(dbot.t('syntax_error')); + if(commandName !== '~') { + event.reply(dbot.t('syntax_error')); + } } } }