mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 20:23:26 +00:00
load alien whitelist on startup, all races available if not using WL
This commit is contained in:
@@ -22,6 +22,8 @@ proc/load_alienwhitelist()
|
|||||||
|
|
||||||
//todo: admin aliens
|
//todo: admin aliens
|
||||||
/proc/is_alien_whitelisted(mob/M, var/species)
|
/proc/is_alien_whitelisted(mob/M, var/species)
|
||||||
|
if(!config.usealienwhitelist)
|
||||||
|
return 1
|
||||||
if(species == "human" || species == "Human")
|
if(species == "human" || species == "Human")
|
||||||
return 1
|
return 1
|
||||||
if(check_rights(R_ADMIN, 0))
|
if(check_rights(R_ADMIN, 0))
|
||||||
|
|||||||
@@ -32,6 +32,8 @@
|
|||||||
LoadBansjob()
|
LoadBansjob()
|
||||||
if(config.usewhitelist)
|
if(config.usewhitelist)
|
||||||
load_whitelist()
|
load_whitelist()
|
||||||
|
if(config.usealienwhitelist)
|
||||||
|
load_alienwhitelist()
|
||||||
jobban_loadbanfile()
|
jobban_loadbanfile()
|
||||||
jobban_updatelegacybans()
|
jobban_updatelegacybans()
|
||||||
LoadBans()
|
LoadBans()
|
||||||
|
|||||||
Reference in New Issue
Block a user