From 75ba29739c33705855c2206c54ed21a1a25df27e Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 20 Jun 2011 20:05:03 -0500 Subject: [PATCH] don't treat the string 'debug' as an alias from the config file stuff like '!echo debug' would result in 'false'. oops --- DrBotIRC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DrBotIRC.py b/DrBotIRC.py index 0949508..c42ccba 100644 --- a/DrBotIRC.py +++ b/DrBotIRC.py @@ -204,7 +204,7 @@ class DrBotIRC(irclib.IRC): for alias in alias_list: alias_re = re.compile(alias, re.IGNORECASE) - if alias_re.search(what): + if alias_re.search(what) and alias != 'debug': # we found an alias for our given string, doing a replace command = re.sub(alias, self.config.get('Alias', alias), what, flags=re.IGNORECASE) event.arguments()[0] = command