Merge pull request #9846 from GinjaNinja32/irc

Allows setting the URL for the IRC bot to report separately from the main SERVER config setting
This commit is contained in:
Ccomp5950
2015-06-18 13:46:32 -04:00
3 changed files with 19 additions and 11 deletions

View File

@@ -86,6 +86,7 @@
var/guests_allowed = 1
var/debugparanoid = 0
var/serverurl
var/server
var/banappeals
var/wikiurl
@@ -365,6 +366,9 @@
if ("hostedby")
config.hostedby = value
if ("serverurl")
config.serverurl = value
if ("server")
config.server = value

View File

@@ -26,6 +26,6 @@
/hook/startup/proc/ircNotify()
send2mainirc("Server starting up on [config.server? "byond://[config.server]" : "byond://[world.address]:[world.port]"]")
send2mainirc("Server starting up on byond://[config.serverurl ? config.serverurl : (config.server ? config.server : "[world.address]:[world.port]")]")
return 1