Fixed a bug that caused the whisper for prayers to be delayed by a few seconds (#32349)

This commit is contained in:
DamianX
2022-04-16 16:46:53 +02:00
committed by GitHub
parent d34a7dab82
commit 74ef32ced4
2 changed files with 2 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
// Meta argument here is the MoMMI meta argument to send to the gamenudge route.
// AKA the MoMMI config file chooses where to send it based on this key.
/proc/send2discord(var/msg, var/meta, var/ping = FALSE)
set waitfor = FALSE
if (!global.config.discord_url || !global.config.discord_password)
return

View File

@@ -2,6 +2,7 @@
#define IRC_FLAG_ADMINHELP "ahelps"
/proc/send2irc(var/flag, var/msg)
set waitfor = FALSE
if(config.use_irc_bot)
var/a=" --key=\"[config.comms_password]\""
a += " --id=\"[config.irc_bot_server_id]\""
@@ -12,7 +13,6 @@
a+=" --port=\"[config.irc_bot_port]\""
msg=replacetext(msg,"\"","\\\"")
ext_python("ircbot_message.py", "[a] [escape_shell_arg(msg)]")
return
/proc/send2mainirc(var/msg)
send2irc(IRC_FLAG_GENERAL,msg)