Fixed wrong client id being logged as warn invoker

This commit is contained in:
Timo Smit 2016-11-30 14:17:27 +01:00
parent 4145dd87ba
commit 0c3f0d84ee

View file

@ -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