Skip to content

Commit

Permalink
BCCM Addition (#413)
Browse files Browse the repository at this point in the history
* BCCM Addition

* Update footstep.dm

* back to the drawing board

* lets try this

* Update footstep.dm

* kill me

* im going to kill the LINTERS
  • Loading branch information
tichys authored Mar 3, 2024
1 parent 39d4ff1 commit 5fbdbe9
Show file tree
Hide file tree
Showing 15 changed files with 848 additions and 27 deletions.
7 changes: 4 additions & 3 deletions code/__DEFINES/subsystems.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@
// The numbers just define the ordering, they are meaningless otherwise.

#define INIT_ORDER_PROFILER 100
#define INIT_ORDER_FAIL2TOPIC 99
#define INIT_ORDER_TITLE 98
#define INIT_ORDER_GARBAGE 95
#define INIT_ORDER_FAIL2TOPIC 98
#define INIT_ORDER_TITLE 97
#define INIT_ORDER_GARBAGE 96
#define INIT_ORDER_BCCM 95
#define INIT_ORDER_DBCORE 94
#define INIT_ORDER_STATPANELS 93
#define INIT_ORDER_BLACKBOX 92
Expand Down
18 changes: 18 additions & 0 deletions code/__HELPERS/text.dm
Original file line number Diff line number Diff line change
Expand Up @@ -826,3 +826,21 @@ GLOBAL_LIST_INIT(hex_muted3, list("0","2"))
if(prob(15))
corrupted_text += pick(corruption_options)
return corrupted_text


/proc/sql_sanitize_text(text)
text = replacetext(text, "'", "''")
text = replacetext(text, ";", "")
text = replacetext(text, "&", "")
return text

/proc/new_sql_sanitize_text(var/text)
text = replacetext(text, "'", "")
text = replacetext(text, ";", "")
text = replacetext(text, "&", "")
text = replacetext(text, "`", "")
return text

/proc/remove_all_spaces(text)
text = replacetext(text, " ", "")
return text
4 changes: 3 additions & 1 deletion code/controllers/configuration/configuration.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var/list/mode_names
var/list/mode_reports
var/list/mode_false_report_weight

var/bccm = FALSE
var/motd
// var/policy

Expand Down Expand Up @@ -57,6 +57,8 @@

if (Master)
Master.OnConfigLoad()
if ("use_bccm")
config.bccm = TRUE

/datum/controller/configuration/proc/full_wipe()
if(IsAdminAdvancedProcCall())
Expand Down
Loading

0 comments on commit 5fbdbe9

Please sign in to comment.