mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
(probably) fixes an issue where the server hangs at roundstart if the IRC bot doesn't respond properly
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
/proc/send2irc(var/channel, var/msg)
|
/proc/send2irc(var/channel, var/msg)
|
||||||
if(config.use_irc_bot && config.irc_bot_host)
|
if(config.use_irc_bot && config.irc_bot_host)
|
||||||
if(config.irc_bot_export)
|
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
|
else
|
||||||
if(config.use_lib_nudge)
|
if(config.use_lib_nudge)
|
||||||
var/nudge_lib
|
var/nudge_lib
|
||||||
|
|||||||
Reference in New Issue
Block a user