diff --git a/Module.py b/Module.py index 47ed72c..1a9e19e 100644 --- a/Module.py +++ b/Module.py @@ -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