Adds sanity check to bantype check

Just in case.
This commit is contained in:
Krausus
2015-05-21 22:45:58 -04:00
parent d91e8ecc15
commit 2c1204e534
+1 -1
View File
@@ -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>."