From c74e30d5ba06bb68839475db61004a0f1def194c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= <tseeker@nocternity.net>
Date: Sat, 4 Jan 2025 15:28:26 +0100
Subject: [PATCH] Manually import single change from old staging repo

---
 .../db-structure/parts/functions/190-admin-functions.sql      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/legacyworlds-server/legacyworlds-server-data/db-structure/parts/functions/190-admin-functions.sql b/legacyworlds-server/legacyworlds-server-data/db-structure/parts/functions/190-admin-functions.sql
index fdf8c79..b5bbf6a 100644
--- a/legacyworlds-server/legacyworlds-server-data/db-structure/parts/functions/190-admin-functions.sql
+++ b/legacyworlds-server/legacyworlds-server-data/db-structure/parts/functions/190-admin-functions.sql
@@ -874,7 +874,7 @@ BEGIN
 					|| 's' ) :: INTERVAL;
 	g_time := ( floor(sys.get_constant('accounts.warnings.grace')) || 's' )::INTERVAL;
 	UPDATE admin.warnings SET last_received = now( ) - g_time , warnings = warnings - 1
-		WHERE now() - last_received >= e_time AND warnings > 0;
+		WHERE now() - last_received >= g_time AND warnings > 0;
 END;
 $$ LANGUAGE plpgsql;
 
@@ -934,4 +934,4 @@ CREATE VIEW admin.users_list
 				LEFT OUTER JOIN admin.warnings w ON w.credentials_id = av.id
 			ORDER BY av.address;
 
-GRANT SELECT ON admin.users_list TO :dbuser;
\ No newline at end of file
+GRANT SELECT ON admin.users_list TO :dbuser;