]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix localization
authorThorsten <mail@aero2k.de>
Tue, 21 Jan 2020 18:09:09 +0000 (19:09 +0100)
committerThorsten <mail@aero2k.de>
Tue, 21 Jan 2020 18:09:09 +0000 (19:09 +0100)
distbot/plugins/basic.py

index a4df12ad4a7c22de7a5651a56b01efb1e05c32a6..d73aff9fefa157813a86d63f3f05b989c3f6bd0f 100644 (file)
@@ -193,7 +193,8 @@ class Coin(Worker):
 
     def parse_body(self, msg):
         sender = get_nick_from_message(msg)
-        if "coin" in msg:
+        words = get_words(msg)
+        if "coin" in words:
             localized_responses = ["head", "tails"]
         else:
             localized_responses = ["kopf", "zahl"]