Ignore all messages ending with [IRC]
This commit is contained in:
parent
31e4efed44
commit
3184ddc3cd
|
@ -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…
Reference in New Issue