#: URL où sont disponibles les quotes
quote_display_url = u"http://cerebro.crans.org/parrot-quotes.txt (campus-only)"
+#: Suffixes qui font qu'une commande va utiliser des regexp
+regex_suffixes = ["-r", "reg", "-reg", "regex", "-regex", "regexp", "-regexp"]
+
#: Nombre maximum d'auteurs qu'on peut demander à afficher
search_max_authors = 20
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: