From b4b15e56783b6e1129718dd3e443178185c12156 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 6 Mar 2019 13:51:38 +0000 Subject: [PATCH] Don't treat ACTION CTCP as a different event to normal PRIVMSGs --- modules/line_handler/message.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/line_handler/message.py b/modules/line_handler/message.py index 69317c19..7bc2e27e 100644 --- a/modules/line_handler/message.py +++ b/modules/line_handler/message.py @@ -44,10 +44,11 @@ def privmsg(events, event): ctcp_message = utils.irc.parse_ctcp(message) if ctcp_message: message = ctcp_message.message - event_type = "ctcp.%s" % ctcp_message.command if ctcp_message.command == "ACTION": action = True message = ctcp_message.message + else: + event_type = "ctcp.%s" % ctcp_message.command if user and "account" in event["tags"]: user.identified_account = event["tags"]["account"]