Diff

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
parent 4012:fd582067c732
child 4103:ecc6ad057383
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,
 	});