From 07ac40935279b2e7ee0aeaf810413776182b8f13 Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 20 Jul 2022 14:59:14 +0200 Subject: [PATCH] fix message parsing --- main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index a24d103..1439251 100644 --- a/main.py +++ b/main.py @@ -169,11 +169,9 @@ async def handle_msg(nick, msg, target, now: float): def _err(target, err): return bot.send("PRIVMSG", target=target, message=err) - if "!dall" not in msg: + if "re @" in msg: return - - spl = msg.split(' ') - if "!dall" not in spl[:3]: # stupid fix for IRC bridge bots + if "!dall" not in msg: return msg = msg[msg.find("!dall"):]