Skip to content

Commit

Permalink
redundant proc
Browse files Browse the repository at this point in the history
  • Loading branch information
Legendaxe committed Apr 19, 2024
1 parent 7217499 commit cedfde0
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions modular_ss220/whitelist/code/whitelist.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,6 @@

load_whitelist()

/mob/new_player/proc/check_whitelist()
if(!GLOB.configuration.overflow.reroute_cap || !SSdbcore.IsConnected())
return
var/datum/db_query/whitelist_query = SSdbcore.NewQuery({"
SELECT ckey FROM ckey_whitelist WHERE ckey=:ckey AND
is_valid=1 AND port=:port AND date_start<=NOW() AND
(NOW()<date_end OR date_end IS NULL)
"}, list("ckey" = ckey, "port" = "[world.port]"))
if(!whitelist_query.warn_execute())
qdel(whitelist_query)
return

while(whitelist_query.NextRow())
var/ckey = whitelist_query.item[1]
GLOB.configuration.overflow.overflow_whitelist |= ckey

qdel(whitelist_query)


/world/IsBanned(key, address, computer_id, type, check_ipintel, check_2fa, check_guest, log_info, check_tos)
var/ckey = ckey(key)

Expand Down

0 comments on commit cedfde0

Please sign in to comment.