diff options
| author | 2018-09-05 12:04:34 +0100 | |
|---|---|---|
| committer | 2018-09-05 12:04:34 +0100 | |
| commit | ec119e3dcfd4e052f188659cdfe5ae9f8bccca3b (patch) | |
| tree | 2cc991c3cf146ae14f5c3321c318fd4a63470e7c | |
| parent | Support IRCv3's account-notify/extended-join along with WHOX to replace internal (diff) | |
| signature | ||
Correctly keep track of IRCUser.identified_account_id
| -rw-r--r-- | IRCLineHandler.py | 5 |
1 files changed, 5 insertions, 0 deletions
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"]) |
