aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules/line_handler
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-09 23:04:36 +0000
committerGravatar jesopo2020-02-09 23:04:36 +0000
commit22cdafd354080dbcd2dc9d1e0f8fe23a3826d2fc (patch)
tree846a168f52b589adbf0bddecb42228fea4bcb504 /src/core_modules/line_handler
parentcorrectly handle cron / "step" schedule (diff)
signature
format and print ACCOUNT events
Diffstat (limited to 'src/core_modules/line_handler')
-rw-r--r--src/core_modules/line_handler/user.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core_modules/line_handler/user.py b/src/core_modules/line_handler/user.py
index 15b71673..765d1da8 100644
--- a/src/core_modules/line_handler/user.py
+++ b/src/core_modules/line_handler/user.py
@@ -100,6 +100,7 @@ def account(events, event):
events.on("received.account.login").call(user=user,
server=event["server"], account=event["line"].args[0])
else:
+ account = user.account
user.account = None
events.on("received.account.logout").call(user=user,
- server=event["server"])
+ server=event["server"], account=account)