]> gitweb.pimeys.fr Git - bots/parrot.git/blobdiff - parrot.py
Regexp avec le flag UNICODE histoire de matcher correctement les espaces insécables
[bots/parrot.git] / parrot.py
index a507663bc0d9e6dcdbc76fd402e49e3a3910bd0d..17d99c199e9dc70a50ff735ed9aa5e0707cc551b 100755 (executable)
--- a/parrot.py
+++ b/parrot.py
@@ -426,7 +426,7 @@ class Parrot(ircbot.SingleServerIRCBot):
                 self.serv.privmsg(canal, "%s: %s" % (auteur, config.quote_display_url.encode("utf-8")))
         else:
             # Vu que ce bot est prévu pour parser des quotes il va falloir bosser ici
-            match = quote_pattern.match(message)
+            match = self.quote_pattern.match(message)
             if match:
                 d = match.groupdict()
                 if self.quotedb.store(d["author"], d["content"]):