mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
Adds a separate config option for enabling comms/API
This commit is contained in:
@@ -268,10 +268,11 @@
|
||||
Tickcomp = 1
|
||||
if("automute_on")
|
||||
automute_on = 1
|
||||
if("comms_key")
|
||||
comms_key = value
|
||||
if(value != "default_pwd" && length(value) > 6) //It's the default value or less than 6 characters long, warn badmins
|
||||
comms_allowed = 1
|
||||
if("comms_enabled") //Whether comms are enabled at all
|
||||
if("comms_key") //The actual password
|
||||
comms_key = value
|
||||
if(value != "default_pwd" && length(value) > 6) //It's the default value or less than 6 characters long, warn badmins
|
||||
comms_allowed = 1
|
||||
else
|
||||
diary << "Unknown setting in configuration: '[name]'"
|
||||
|
||||
|
||||
@@ -145,5 +145,6 @@ TICKCOMP 0
|
||||
## Comment this out to disable automuting
|
||||
#AUTOMUTE_ON
|
||||
|
||||
## Communication key for receiving data through world/Topic(), you don't want to give this out
|
||||
## Communication key for receiving data through world/Topic(), you don't want to give this out. Comms_enabled will be on if it's uncommented AND it's not the default value.
|
||||
COMMS_ENABLED
|
||||
COMMS_KEY default_pwd
|
||||
Reference in New Issue
Block a user