comparison mod_lastlog2/mod_lastlog2.lua @ 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 fd582067c732
children ecc6ad057383
comparison
equal deleted inserted replaced
4101:0e1e775bdea0 4102:4e7ff27c212c
27 end 27 end
28 end); 28 end);
29 29
30 module:hook("user-registered", function(event) 30 module:hook("user-registered", function(event)
31 local session = event.session; 31 local session = event.session;
32 store:set(event.username, "lastlog", { 32 store:set(event.username, "registered", {
33 event = "registered";
34 timestamp = time(), 33 timestamp = time(),
35 ip = log_ip and session and session.ip or nil, 34 ip = log_ip and session and session.ip or nil,
36 }); 35 });
37 end); 36 end);
38 37