mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
25 lines
969 B
Plaintext
25 lines
969 B
Plaintext
#define IRC_FLAG_GENERAL "nudges"
|
|
#define IRC_FLAG_ADMINHELP "ahelps"
|
|
|
|
/proc/send2irc(var/flag, var/msg)
|
|
//writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/send2irc() called tick#: [world.time]")
|
|
if(config.use_irc_bot)
|
|
var/a=" --key=\"[config.comms_password]\""
|
|
a += " --id=\"[config.irc_bot_server_id]\""
|
|
a += " --channel=\"[flag]\""
|
|
if(config.irc_bot_host)
|
|
a+=" --host=\"[config.irc_bot_host]\""
|
|
if(config.irc_bot_port)
|
|
a+=" --port=\"[config.irc_bot_port]\""
|
|
msg=replacetext(msg,"\"","\\\"")
|
|
ext_python("ircbot_message.py", "[a] [msg]")
|
|
return
|
|
|
|
/proc/send2mainirc(var/msg)
|
|
//writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/send2mainirc() called tick#: [world.time]")
|
|
send2irc(IRC_FLAG_GENERAL,msg)
|
|
|
|
/proc/send2adminirc(var/msg)
|
|
//writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/send2adminirc() called tick#: [world.time]")
|
|
send2irc(IRC_FLAG_ADMINHELP,msg)
|