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:
parent
111b068ed4
commit
75ba29739c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user