X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fparrot.git;a=blobdiff_plain;f=parrot.py;h=821459498d8f8cae63a731acde54d4e332043dbb;hp=0c4006fc0e1ad6c0e6a14c2780d20b5bd4581e41;hb=d8f25a4cab028d43f815c7bb3337ef53eca204d4;hpb=429401c797769a35ad0c6310e81f03f161e198ff diff --git a/parrot.py b/parrot.py index 0c4006f..8214594 100755 --- a/parrot.py +++ b/parrot.py @@ -449,7 +449,7 @@ class Parrot(ircbot.SingleServerIRCBot): elif message.startswith(u"!author"): words = message.split() cmd = words[0].lstrip("!") - regexp = cmd in ["author-r", "authorreg", "author-reg", "author-regex"] + regexp = cmd in ["author" + suffix for suffix in config.regex_suffixes] search = u" ".join(words[1:]) authors = self.quotedb.search_authors(search, regexp) if len(authors) > config.search_max_authors: