X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=parrot.py;h=0cd5be9771eb644ee7ef2332b9330f1b8550d525;hb=c1ba05ddcc27dd91eb593b6ef00baee03c833ea1;hp=1072896cb8f98b687d94283d0b8cf66864f670b6;hpb=51b7d8da6804bd5018f5ecd169875fad92084ee6;p=bots%2Fparrot.git diff --git a/parrot.py b/parrot.py index 1072896..0cd5be9 100755 --- a/parrot.py +++ b/parrot.py @@ -432,7 +432,9 @@ class Parrot(ircbot.SingleServerIRCBot): match = self.quote_pattern.match(message) if match: d = match.groupdict() - if self.quotedb.store(d["author"], d["content"]): + # On n'autorise pas les gens à déclarer le quoter + d["quoter"] = auteur.decode("utf-8") + if self.quotedb.store(**d): serv.privmsg(canal, (u"%s: Ce sera retenu, répété, amplifié" % (auteur,)).encode("utf-8")) self.quotedb.save() else: