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:
committed by
CitadelStationBot
parent
31e2303e39
commit
5118e6efe9
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user