/tg/ Station 13 - Modules - Types

code/modules/admin/sql_ban_system.dm

/proc/is_banned_fromChecks client ban cache or, if it doesn't exist, queries the DB ban table to see if the player's ckey is banned from at least one of the provided roles.
/proc/retrieve_ban_cacheGets the ban cache of the passed in client If the cache has not been generated, we start off a query If we still have a query going for this request, we just sleep until it's received back