diff --git a/bridge.py b/bridge.py index 7b30818..51fb03b 100755 --- a/bridge.py +++ b/bridge.py @@ -22,6 +22,8 @@ shoutbox = Shoutbox(cookies) @irc.on(lambda m: m.to[1:] in channels and not m.author.endswith("[s]")) def handle_irc(m): + if (m.text.startswith("\x01ACTION ")): + m.text = m.text.replace("ACTION ", "[i]") shoutbox.post(m.author, m.text, m.to[1:], USERS)