ircbot: recurse if we had an alias hit

the idea is that there may be two aliases in the string, or the alias
may have created another alias
This commit is contained in:
Brian S. Stephan 2015-06-19 21:40:35 -05:00
parent e11d7280de
commit 397ae2243c
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ class DrReactor(irc.client.Reactor):
if repl:
# we found an alias for our given string, doing a replace
event.arguments[0] = repl
# recurse, in case there's another alias in this one
return self._handle_event(connection, event)
with self.mutex:
# doing regex version first as it has the potential to be more specific