From c862f131ac246d92403a6f0c38726d9294586c4d Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Thu, 29 May 2014 21:36:34 -0500 Subject: [PATCH] Bot down? Let's not lock up the entire server. Instead we'll spawn a thread to handle it, not like we care what is returned either way. Conflicts: code/modules/ext_scripts/irc.dm --- code/modules/ext_scripts/irc.dm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/code/modules/ext_scripts/irc.dm b/code/modules/ext_scripts/irc.dm index 41003052fd5..13b8d3c0759 100644 --- a/code/modules/ext_scripts/irc.dm +++ b/code/modules/ext_scripts/irc.dm @@ -1,6 +1,17 @@ /proc/send2irc(var/channel, var/msg) if(config.use_irc_bot && config.irc_bot_host) - ext_python("ircbot_message.py", "[config.comms_password] [config.irc_bot_host] [channel] [msg]") + if(config.use_lib_nudge) + var/nudge_lib + if(world.system_type == MS_WINDOWS) + nudge_lib = "lib\\nudge.dll" + else + nudge_lib = "lib/nudge.so" + + spawn(0) + call(nudge_lib, "nudge")("[config.comms_password]","[config.irc_bot_host]","[channel]","[msg]") + else + spawn(0) + ext_python("ircbot_message.py", "[config.comms_password] [config.irc_bot_host] [channel] [msg]") return /proc/send2mainirc(var/msg)