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:
parent
e11d7280de
commit
397ae2243c
@ -136,6 +136,8 @@ class DrReactor(irc.client.Reactor):
|
|||||||
if repl:
|
if repl:
|
||||||
# we found an alias for our given string, doing a replace
|
# we found an alias for our given string, doing a replace
|
||||||
event.arguments[0] = repl
|
event.arguments[0] = repl
|
||||||
|
# recurse, in case there's another alias in this one
|
||||||
|
return self._handle_event(connection, event)
|
||||||
|
|
||||||
with self.mutex:
|
with self.mutex:
|
||||||
# doing regex version first as it has the potential to be more specific
|
# doing regex version first as it has the potential to be more specific
|
||||||
|
Loading…
Reference in New Issue
Block a user