From ec119e3dcfd4e052f188659cdfe5ae9f8bccca3b Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 5 Sep 2018 12:04:34 +0100 Subject: [PATCH] Correctly keep track of IRCUser.identified_account_id --- IRCLineHandler.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IRCLineHandler.py b/IRCLineHandler.py index b7508234..c700ebc8 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -229,6 +229,8 @@ class LineHandler(object): if account: user.identified_account = account + user.identified_account_id = event["server"].get_user( + account).id if realname: user.realname = realname @@ -475,10 +477,13 @@ class LineHandler(object): if not event["args"][0] == "*": user.identified_account = event["args"][0] + user.identified_account_id = event["server"].get_user( + event["args"][0]).id self.events.on("received.account.login").call(user=user, server=event["server"], account=event["args"][0]) else: user.identified_account = None + user.identified_account_id = None self.events.on("received.account.logout").call(user=user, server=event["server"])