mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Admin commands: reload job/alien whitelists (#8182)
This commit is contained in:
@@ -121,3 +121,15 @@ GLOBAL_LIST_EMPTY(alien_whitelist) // CHOMPEdit - Managed Globals
|
||||
return FALSE
|
||||
|
||||
#undef WHITELISTFILE
|
||||
|
||||
//ChompEDIT - admin reload buttons
|
||||
/client/proc/reload_alienwhitelist()
|
||||
set category = "Server.Config"
|
||||
set name = "Reload Alien whitelist"
|
||||
|
||||
if(!check_rights(R_ADMIN|R_MOD|R_DEBUG|R_EVENT))
|
||||
return
|
||||
|
||||
load_alienwhitelist()
|
||||
log_and_message_admins("reloaded the alien whitelist")
|
||||
//ChompEDIT End
|
||||
|
||||
@@ -30,3 +30,15 @@ GLOBAL_LIST_EMPTY(job_whitelist) // CHOMPEdit - Managed Globals
|
||||
return 1
|
||||
if(findtext(s,"[M.ckey] - All"))
|
||||
return 1
|
||||
|
||||
//ChompEDIT START - admin reload buttons
|
||||
/client/proc/reload_jobwhitelist()
|
||||
set category = "Server.Config"
|
||||
set name = "Reload Job whitelist"
|
||||
|
||||
if(!check_rights(R_ADMIN|R_MOD|R_DEBUG|R_EVENT))
|
||||
return
|
||||
|
||||
load_jobwhitelist()
|
||||
log_and_message_admins("reloaded the job whitelist")
|
||||
//ChompEDIT End
|
||||
|
||||
Reference in New Issue
Block a user