From: Thorsten Date: Fri, 12 Jul 2024 18:34:24 +0000 (+0200) Subject: fix bug. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=9110d101039c0fb3633e8db1e28f373fc01f9deb;p=urlbot-v3.git fix bug. --- diff --git a/src/distbot/plugins/fun.py b/src/distbot/plugins/fun.py index 7b468b2..ace0868 100644 --- a/src/distbot/plugins/fun.py +++ b/src/distbot/plugins/fun.py @@ -61,6 +61,8 @@ class Slap(Worker): sender = get_nick_from_message(msg) w = get_words(msg) verb = w[0] + 's' + if verb not in ("hugs", "slaps"): + return Action(msg=f"/me slaps {sender}.") if len(w) > 1: subject = " ".join(w[1:]) else: