fix message parsing

This commit is contained in:
dsc 2022-07-20 14:59:14 +02:00
parent 0ea32e8c21
commit 07ac409352

View file

@ -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"):]