Skip to content

Commit

Permalink
Merge pull request #60 from Kaostico/automatic-whitelist-subsystem
Browse files Browse the repository at this point in the history
Add automatic whitelist refreshing subsystem
  • Loading branch information
kannthus authored Sep 17, 2024
2 parents d3d98fa + f570670 commit 4d11d94
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
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

0 comments on commit 4d11d94

Please sign in to comment.