mirror of
https://git.wownero.com/dsc/craiyon-irc.git
synced 2024-08-15 01:03:24 +00:00
fix message parsing
This commit is contained in:
parent
0ea32e8c21
commit
07ac409352
1 changed files with 2 additions and 4 deletions
6
main.py
6
main.py
|
@ -169,11 +169,9 @@ async def handle_msg(nick, msg, target, now: float):
|
||||||
def _err(target, err):
|
def _err(target, err):
|
||||||
return bot.send("PRIVMSG", target=target, message=err)
|
return bot.send("PRIVMSG", target=target, message=err)
|
||||||
|
|
||||||
if "!dall" not in msg:
|
if "re @" in msg:
|
||||||
return
|
return
|
||||||
|
if "!dall" not in msg:
|
||||||
spl = msg.split(' ')
|
|
||||||
if "!dall" not in spl[:3]: # stupid fix for IRC bridge bots
|
|
||||||
return
|
return
|
||||||
|
|
||||||
msg = msg[msg.find("!dall"):]
|
msg = msg[msg.find("!dall"):]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue