mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-21 06:25:59 +00:00
15 lines
305 B
Plaintext
15 lines
305 B
Plaintext
#define WHITELISTFILE "data/whitelist.txt"
|
|
|
|
var/list/whitelist
|
|
|
|
/proc/load_whitelist()
|
|
whitelist = file2list(WHITELISTFILE)
|
|
if(!whitelist.len)
|
|
whitelist = null
|
|
|
|
/proc/check_whitelist(mob/M /*, var/rank*/)
|
|
if(!whitelist)
|
|
return 0
|
|
return ("[M.ckey]" in whitelist)
|
|
|
|
#undef WHITELISTFILE |