meta option 'meta.pubmsg_ignore_bot_prefix' to have module not try [] recursion.

handy for the alias module, which will want to preserve that recursion stuff (if
it shows up) after it does its alias lookup
This commit is contained in:
Brian S. Stephan 2010-09-08 19:38:19 -05:00
parent 98c30e1714
commit fc8a61a110

View File

@ -121,7 +121,13 @@ class Module(object):
else:
what = addressed_re.sub('', what)
if replypath is not None:
skip_recursion_scan = False
try:
skip_recursion_scan = self.config.getboolean(self.__class__.__name__, 'meta.skip_recursion_scan')
except NoOptionError: pass
except NoSectionError: pass
if replypath is not None and skip_recursion_scan is False:
what = self.try_recursion(connection, event, nick, userhost, replypath, what, admin_unlocked)
# try reloading