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
|
Tickcomp = 1
|
||||||
if("automute_on")
|
if("automute_on")
|
||||||
automute_on = 1
|
automute_on = 1
|
||||||
if("comms_key")
|
if("comms_enabled") //Whether comms are enabled at all
|
||||||
comms_key = value
|
if("comms_key") //The actual password
|
||||||
if(value != "default_pwd" && length(value) > 6) //It's the default value or less than 6 characters long, warn badmins
|
comms_key = value
|
||||||
comms_allowed = 1
|
if(value != "default_pwd" && length(value) > 6) //It's the default value or less than 6 characters long, warn badmins
|
||||||
|
comms_allowed = 1
|
||||||
else
|
else
|
||||||
diary << "Unknown setting in configuration: '[name]'"
|
diary << "Unknown setting in configuration: '[name]'"
|
||||||
|
|
||||||
|
|||||||
@@ -145,5 +145,6 @@ TICKCOMP 0
|
|||||||
## Comment this out to disable automuting
|
## Comment this out to disable automuting
|
||||||
#AUTOMUTE_ON
|
#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
|
COMMS_KEY default_pwd
|
||||||
Reference in New Issue
Block a user