aboutsummaryrefslogtreecommitdiff
path: root/IRCLineHandler.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-21 10:35:18 +0100
committerGravatar jesopo2018-09-21 10:35:18 +0100
commitcc371e3ae0aba35007bf457b33fa7fd098cd8911 (patch)
tree5e17b5d9c6bbfbcb0e8cb99e2b1e85784c26c46b /IRCLineHandler.py
parentShow logging timestamp as UTC/GMT (diff)
signature
Update a user's ircv3 account if a PRIVMSG has an "account" tag
Diffstat (limited to 'IRCLineHandler.py')
-rw-r--r--IRCLineHandler.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py
index 9ece139f..062ff2d5 100644
--- a/IRCLineHandler.py
+++ b/IRCLineHandler.py
@@ -417,6 +417,11 @@ class LineHandler(object):
if message.endswith("\x01"):
message = message[:-1]
+ if "account" in event["tags"]:
+ user.identified_account = event["tags"]["account"]
+ user.identified_account_id = event["server"].get_user(
+ event["tags"]["account"]).get_id()
+
kwargs = {"message": message, "message_split": message_split,
"server": event["server"], "tags": event["tags"],
"action": action}