]> git.aero2k.de Git - urlbot-v3.git/commitdiff
dublettenbuster master
authorThorsten <mail@aero2k.de>
Wed, 19 Nov 2025 15:42:06 +0000 (16:42 +0100)
committerThorsten <mail@aero2k.de>
Wed, 19 Nov 2025 15:42:06 +0000 (16:42 +0100)
src/distbot/plugins/didyouknow.py

index 696948f588007922314df221eda2a1585a739fc1..7f1a8423905efffbc33a2c6a7b485064de61e2c7 100644 (file)
@@ -37,7 +37,7 @@ class DidYouKnow(Worker):
     def parse_body(self, msg):
         sender = get_nick_from_message(msg)
         words = get_words(msg)
-        if "wusstet" in map(lambda w: w.lower(), words):
+        if "wusstet" in map(lambda w: w.lower(), words) and ">" not in msg:
             fact = self.get_random_fact()
             self.insert_fact(msg)
             answer = random.choice(self.answers)