From 0c3f0d84eecc04e9e686bcd9ba7e13ba18cfbc2a Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Wed, 30 Nov 2016 14:17:27 +0100 Subject: [PATCH] Fixed wrong client id being logged as warn invoker --- luascripts/admin/warns.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luascripts/admin/warns.lua b/luascripts/admin/warns.lua index a937e12..6b37faa 100644 --- a/luascripts/admin/warns.lua +++ b/luascripts/admin/warns.lua @@ -48,7 +48,7 @@ end function warns.add(clientId, reason, adminId, datetime) local playerid = db.getplayer(players.getGUID(clientId))["id"] - local adminid = db.getplayer(players.getGUID(clientId))["id"] + local adminid = db.getplayer(players.getGUID(adminId))["id"] db.addwarn(playerid, reason, adminid, datetime) end