Ignore all messages ending with [IRC]

main
Eragon 7 months ago
parent 31e4efed44
commit 3184ddc3cd
Signed by: Eragon
GPG Key ID: 087126EBFC725006
  1. 2
      bridge.py

@ -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}")

Loading…
Cancel
Save