Merge pull request #9958 from GinjaNinja32/botfix

(probably) fixes an issue where the server hangs at roundstart if the IRC bot doesn't respond properly
This commit is contained in:
PsiOmegaDelta
2015-06-28 12:48:54 +02:00
+2 -1
View File
@@ -1,7 +1,8 @@
/proc/send2irc(var/channel, var/msg)
if(config.use_irc_bot && config.irc_bot_host)
if(config.irc_bot_export)
world.Export("http://[config.irc_bot_host]:45678?[list2params(list(pwd=config.comms_password, chan=channel, mesg=msg))]")
spawn(-1) // spawn here prevents hanging in the case that the bot isn't reachable
world.Export("http://[config.irc_bot_host]:45678?[list2params(list(pwd=config.comms_password, chan=channel, mesg=msg))]")
else
if(config.use_lib_nudge)
var/nudge_lib