]> gitweb.pimeys.fr Git - bots/parrot.git/commitdiff
typo
authorVincent Le Gallic <legallic@crans.org>
Mon, 14 Apr 2014 06:57:55 +0000 (08:57 +0200)
committerVincent Le Gallic <legallic@crans.org>
Mon, 14 Apr 2014 06:57:55 +0000 (08:57 +0200)
parrot.py

index d3039a4a432711ec2c4a79683e03a184a84d1df2..aae04fc037e198f702e24d1d6c175d2a31f3f9d8 100755 (executable)
--- 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-r", "authorreg", "author-reg", "author-regex"]
                 search = u" ".join(words[1:])
                 authors = self.quotedb.search_authors(search, regexp)
                 if len(authors) > config.search_max_authors: