Don't treat ACTION CTCP as a different event to normal PRIVMSGs
This commit is contained in:
parent
61acf6cd8e
commit
b4b15e5678
1 changed files with 2 additions and 1 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue