mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Adds sanity check to bantype check
Just in case.
This commit is contained in:
@@ -69,7 +69,7 @@ world/IsBanned(key,address,computer_id)
|
||||
var/expires = ""
|
||||
if(text2num(duration) > 0)
|
||||
expires = "The ban is for [duration] minutes and expires on [expiration] (server time)."
|
||||
if(bantype == "PERMABAN")
|
||||
if(istext(bantype) && (bantype == "PERMABAN"))
|
||||
var/appealmsg = ""
|
||||
if(config && config.banappeals)
|
||||
appealmsg = " You may appeal it at <a href='[config.banappeals]'>[config.banappeals]</a>."
|
||||
|
||||
Reference in New Issue
Block a user