From 1ae2baa3472d70c87f5993d0f595f1b0dcf2fcce Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 24 Feb 2016 18:25:02 -0800 Subject: [PATCH] RelayNext: strip CTCPs other than actions --- RelayNext/plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RelayNext/plugin.py b/RelayNext/plugin.py index 0876add..6e398be 100644 --- a/RelayNext/plugin.py +++ b/RelayNext/plugin.py @@ -163,9 +163,13 @@ class RelayNext(callbacks.Plugin): elif chobj.isVoice(real_nick): nick = '+' + nick + # Check for CTCP ACTION and format those properly. if re.match('^\x01ACTION .*\x01$', text): text = text[8:-1] s = '* %s %s' % (nick, text) + elif text.startswith('\x01'): + # Other CTCP messages should just be ignored + return else: s = '<%s> %s' % (nick, msg.args[1])