From 397ae2243cf8a80d7b3fe89f68f9263b1580f6ae Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 19 Jun 2015 21:40:35 -0500 Subject: [PATCH] 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 --- dr_botzo/ircbot/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dr_botzo/ircbot/bot.py b/dr_botzo/ircbot/bot.py index b1d7d26..d34284f 100644 --- a/dr_botzo/ircbot/bot.py +++ b/dr_botzo/ircbot/bot.py @@ -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