From 9a9f8e55632def1c3fcb534777dba68db3f221cc Mon Sep 17 00:00:00 2001 From: GinjaNinja32 Date: Sun, 28 Jun 2015 11:43:53 +0100 Subject: [PATCH] (probably) fixes an issue where the server hangs at roundstart if the IRC bot doesn't respond properly --- code/modules/ext_scripts/irc.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/ext_scripts/irc.dm b/code/modules/ext_scripts/irc.dm index 19df691757..7975316508 100644 --- a/code/modules/ext_scripts/irc.dm +++ b/code/modules/ext_scripts/irc.dm @@ -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