Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic whitelist refreshing subsystem #60

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions code/__DEFINES/subsystems.dm
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
#define INIT_ORDER_DBCORE 95
#define INIT_ORDER_BLACKBOX 94
#define INIT_ORDER_SERVER_MAINT 93
#define INIT_ORDER_WHITELIST 92 // DOPPLER EDIT ADDITION - automatic whitelist refresh
#define INIT_ORDER_INPUT 85
#define INIT_ORDER_ADMIN_VERBS 84 // needs to be pretty high, admins can't do much without it
#define INIT_ORDER_SOUNDS 83
Expand Down
11 changes: 11 additions & 0 deletions modular_doppler/administration/code/whitelisting.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SUBSYSTEM_DEF(whitelisting)
name = "Auto-Whitelist"
init_order = INIT_ORDER_WHITELIST
runlevels = RUNLEVEL_SETUP | RUNLEVEL_LOBBY | RUNLEVEL_GAME | RUNLEVEL_POSTGAME
wait = 5 MINUTES

/datum/controller/subsystem/whitelisting/Initialize()
return SS_INIT_SUCCESS

/datum/controller/subsystem/whitelisting/fire(resumed = FALSE)
load_whitelist() // yep that's it
27 changes: 27 additions & 0 deletions modular_doppler/administration/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Title: Administration

MODULE ID: ADMINISTRATION

### Description:

This module contains everything related to administration, as well as serving as a place to add more to it.

### TG Proc Changes:

N/A

### Defines:

- `code\__DEFINES\subsystems.dm` subsystem's define

### Master file additions

N/A

### Included files that are not contained in this module:

N/A

### Credits:

Ephemeralis
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6429,6 +6429,7 @@
#include "modular_doppler\accessable_storage\accessable_storage.dm"
#include "modular_doppler\accessable_storage\item.dm"
#include "modular_doppler\accessable_storage\strippable.dm"
#include "modular_doppler\administration\code\whitelisting.dm"
#include "modular_doppler\advanced_reskin\code\advanced_reskin.dm"
#include "modular_doppler\cell_component\code\cell_component.dm"
#include "modular_doppler\colony_fabricator\code\colony_fabricator.dm"
Expand Down
Loading