meta option 'meta.strip_bot_name_from_input' to determine just that.
This commit is contained in:
parent
14973388e5
commit
338c1e759f
@ -114,11 +114,17 @@ class Module(object):
|
|||||||
except NoOptionError: pass
|
except NoOptionError: pass
|
||||||
except NoSectionError: pass
|
except NoSectionError: pass
|
||||||
|
|
||||||
|
strip_bot_name_from_input = True
|
||||||
|
try:
|
||||||
|
strip_bot_name_from_input = self.config.getboolean(self.__class__.__name__, 'meta.strip_bot_name_from_input')
|
||||||
|
except NoOptionError: pass
|
||||||
|
except NoSectionError: pass
|
||||||
|
|
||||||
if not addressed_re.match(what) and need_prefix:
|
if not addressed_re.match(what) and need_prefix:
|
||||||
return
|
return
|
||||||
elif addressed_re.match(what) and ignore_prefix:
|
elif addressed_re.match(what) and ignore_prefix:
|
||||||
return
|
return
|
||||||
else:
|
elif strip_bot_name_from_input:
|
||||||
what = addressed_re.sub('', what)
|
what = addressed_re.sub('', what)
|
||||||
|
|
||||||
skip_recursion_scan = False
|
skip_recursion_scan = False
|
||||||
|
Loading…
Reference in New Issue
Block a user