Admin & Staff adjustments (#2529)

Features:

 Removal of BOREALIS (python module) as it's not used.
 Removes ToR ban feature in lieu of IPIntel.
 New BOREALIS config to alert staff if server starts as hidden.
 Adminhelps now inform admins on discord if dibsed (when they were sent to discord anyways).
 Adds hub visibility to the server access control panel.
 Adds mirror ban spotting via ban panel. It now redirects to the linked ban if one is found.
 CCIAA now get alerted as to how many of them are online and active when receiving faxes and emergency messages via Discord.
 Removed unused C/C++ libraries. The socket_talk module is a generic UDP shipper, of which Arrow implemented a better version. lib nudge is not even compiled for use. lib_nudge module is uncompiled and no longer used, as we use cURL for the bot.
 Removed depracted APIs and config settings related to the previous point.
 Whitelisted jobs now appear properly in the job selection window as [WHITELISTED].
 Job ban reasons can now be viewed from player preferences window.
 Await admin approval for final CCIAA requests and implement. RIP CCIAA.
 Fix age bans for jobs and antags (dynamic ones, ofc).
 Implement https://forums.aurorastation.org/viewtopic.php?f=18&t=8283
This commit is contained in:
skull132
2017-06-13 01:37:44 +03:00
committed by GitHub
parent c8e8710b41
commit e4423761ef
49 changed files with 312 additions and 1455 deletions
-33
View File
@@ -1,33 +0,0 @@
#define CHAN_ADMIN "admin_channel"
#define CHAN_CCIAA "cciaa_channel"
/proc/send_to_discord(var/channel, var/message)
if (!config.use_discord_bot)
return
if (!channel)
log_game("send_to_discord() called without channel arg.")
return
if (!message)
log_game("send_to_discord() called without message arg.")
return
var/arguments = " --key=\"[config.comms_password]\""
arguments += " --channel=\"[channel]\""
if (config.discord_bot_host)
arguments += " --host=\"[config.discord_bot_host]\""
if (config.discord_bot_port)
arguments += " --port=[config.discord_bot_port]"
message = replacetext(message, "\"", "\\\"")
ext_python("discordbot_message.py", "[arguments] [message]")
return
/proc/send_to_admin_discord(var/message)
send_to_discord(CHAN_ADMIN, message)
/proc/send_to_cciaa_discord(var/message)
send_to_discord(CHAN_CCIAA, message)
#undef CHAN_CCIAA
#undef CHAN_ADMIN
View File
-35
View File
@@ -1,35 +0,0 @@
/proc/send2irc(var/channel, var/msg)
if(config.use_irc_bot && config.irc_bot_host)
if(config.irc_bot_export)
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
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)
if(config.main_irc)
send2irc(config.main_irc, msg)
return
/proc/send2adminirc(var/msg)
if(config.admin_irc)
send2irc(config.admin_irc, msg)
return
/hook/startup/proc/ircNotify()
send2mainirc("Server starting up on byond://[config.serverurl ? config.serverurl : (config.server ? config.server : "[world.address]:[world.port]")]")
return 1