don't treat the string 'debug' as an alias from the config file

stuff like '!echo debug' would result in 'false'. oops
This commit is contained in:
Brian S. Stephan 2011-06-20 20:05:03 -05:00
parent 111b068ed4
commit 75ba29739c
1 changed files with 1 additions and 1 deletions

View File

@ -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