meta option 'meta.strip_bot_name_from_input' to determine just that.

This commit is contained in:
Brian S. Stephan 2010-09-08 19:49:56 -05:00
parent 14973388e5
commit 338c1e759f
1 changed files with 7 additions and 1 deletions

View File

@ -114,11 +114,17 @@ class Module(object):
except NoOptionError: 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:
return
elif addressed_re.match(what) and ignore_prefix:
return
else:
elif strip_bot_name_from_input:
what = addressed_re.sub('', what)
skip_recursion_scan = False