Made nudge.py script location configurable.

This commit is contained in:
cib
2012-10-13 11:11:57 -07:00
parent 83ff9c2964
commit 415e1c47d9
3 changed files with 10 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
var/server_name = null // server name (for world name / status)
var/server_suffix = 0 // generate numeric suffix based on server port
var/nudge_script_path = "nudge.py" // where the nudge.py script is located
var/log_ooc = 0 // log OOC channel
var/log_access = 0 // log login/logout
var/log_say = 0 // log client say
@@ -238,6 +240,9 @@
if ("serversuffix")
config.server_suffix = 1
if ("nudge_script_path")
config.nudge_script_path = value
if ("hostedby")
config.hostedby = value

View File

@@ -133,5 +133,5 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an", "monkey", "ali
proc/send2irc(msg,msg2)
if(config.useircbot)
shell("python nudge.py [msg] [msg2]")
shell("python [config.nudge_script_path] [msg] [msg2]")
return

View File

@@ -173,4 +173,7 @@ SOCKET_TALK 0
#AUTOMUTE_ON
## Uncomment to restrict non-admins from using humanoid alien races
USEALIENWHITELIST
USEALIENWHITELIST
## Location of the nudge.py script
NUDGE_SCRIPT_PATH nudge.py