Software /
code /
prosody-modules
Changeset
4102:4e7ff27c212c
mod_lastlog2: Fix 'registered' event (Thanks Ge0rG)
Looks like this event was not updated for the map change, it's still how
it was in mod_lastlog(1)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 11 Sep 2020 16:45:47 +0200 |
parents | 4101:0e1e775bdea0 |
children | 4103:ecc6ad057383 |
files | mod_lastlog2/mod_lastlog2.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_lastlog2/mod_lastlog2.lua Fri Sep 11 15:45:45 2020 +0200 +++ b/mod_lastlog2/mod_lastlog2.lua Fri Sep 11 16:45:47 2020 +0200 @@ -29,8 +29,7 @@ module:hook("user-registered", function(event) local session = event.session; - store:set(event.username, "lastlog", { - event = "registered"; + store:set(event.username, "registered", { timestamp = time(), ip = log_ip and session and session.ip or nil, });