Don't treat ACTION CTCP as a different event to normal PRIVMSGs

This commit is contained in:
jesopo 2019-03-06 13:51:38 +00:00
parent 61acf6cd8e
commit b4b15e5678

View file

@ -44,10 +44,11 @@ def privmsg(events, event):
ctcp_message = utils.irc.parse_ctcp(message) ctcp_message = utils.irc.parse_ctcp(message)
if ctcp_message: if ctcp_message:
message = ctcp_message.message message = ctcp_message.message
event_type = "ctcp.%s" % ctcp_message.command
if ctcp_message.command == "ACTION": if ctcp_message.command == "ACTION":
action = True action = True
message = ctcp_message.message message = ctcp_message.message
else:
event_type = "ctcp.%s" % ctcp_message.command
if user and "account" in event["tags"]: if user and "account" in event["tags"]:
user.identified_account = event["tags"]["account"] user.identified_account = event["tags"]["account"]