fixes misc sql errors (#29274)

* fixes misc sql errors

* also that
This commit is contained in:
ShiftyRail
2021-04-19 19:22:59 +02:00
committed by GitHub
parent 90080d3b5d
commit 84b9831f1b
6 changed files with 12 additions and 5 deletions

View File

@@ -49,9 +49,14 @@
if(ismob(banned_mob))
ckey = banned_mob.ckey
if (!ckey && banned_mob.mind)
ckey = ckey(banned_mob.mind.key)
if(banned_mob.client)
computerid = banned_mob.client.computer_id
ip = banned_mob.client.address
else
computerid = banned_mob.computer_id
ip = banned_mob.lastKnownIP
else if(banckey)
ckey = ckey(banckey)