Ignore all messages ending with [IRC]

This commit is contained in:
Eragon 2022-03-09 14:15:20 +01:00
parent 31e4efed44
commit 3184ddc3cd
Signed by: Eragon
GPG Key ID: 087126EBFC725006
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def handle_irc(m):
shoutbox.post(m.author, m.text, m.to[1:], users)
@shoutbox.on(lambda m: m.channel in channels and m.author != "IRC")
@shoutbox.on(lambda m: m.channel in channels and m.author != "IRC" and not m.text.endswith("[IRC]"))
def handle_shoutbox(m):
irc.send(f"#{m.channel}", f"{m.author}: {m.text}")