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:
parent
98c30e1714
commit
fc8a61a110
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user