Adds a separate config option for enabling comms/API

This commit is contained in:
VistaPOWA
2014-04-13 19:16:10 +02:00
parent 8453cf9af8
commit 19d46a7084
2 changed files with 7 additions and 5 deletions

View File

@@ -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]'"

View File

@@ -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