Makes isbanned have an arg for only checking real bans (#32248)

* makes isbanned have an arg for only checking real bans

* makes it return false if invalid data is passed in on a real bans check
This commit is contained in:
Emmett Gaines
2017-10-31 16:09:10 -04:00
committed by CitadelStationBot
parent 31e2303e39
commit 5118e6efe9
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic
var/list/row = src.connectionHistory[i]
if (!row || row.len < 3 || (!row["ckey"] || !row["compid"] || !row["ip"])) //Passed malformed history object
return
if (world.IsBanned(row["ckey"], row["compid"], row["ip"]))
if (world.IsBanned(row["ckey"], row["compid"], row["ip"], real_bans_only=TRUE))
found = row
break