mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-03 05:52:17 +00:00
Updates Part Eleven
This commit is contained in:
@@ -11,6 +11,7 @@ var/global/datum/ntnet/ntnet_global = new()
|
||||
var/list/chat_channels = list()
|
||||
var/list/fileservers = list()
|
||||
var/list/email_accounts = list() // I guess we won't have more than 999 email accounts active at once in single round, so this will do until Servers are implemented someday.
|
||||
var/list/banned_nids = list()
|
||||
// Amount of logs the system tries to keep in memory. Keep below 999 to prevent byond from acting weirdly.
|
||||
// High values make displaying logs much laggier.
|
||||
var/setting_maxlogcount = 100
|
||||
@@ -60,6 +61,16 @@ var/global/datum/ntnet/ntnet_global = new()
|
||||
else
|
||||
break
|
||||
|
||||
/datum/ntnet/proc/check_banned(var/NID)
|
||||
if(!relays || !relays.len)
|
||||
return FALSE
|
||||
|
||||
for(var/obj/machinery/ntnet_relay/R in relays)
|
||||
if(R.operable())
|
||||
return (NID in banned_nids)
|
||||
|
||||
return FALSE
|
||||
|
||||
// Checks whether NTNet operates. If parameter is passed checks whether specific function is enabled.
|
||||
/datum/ntnet/proc/check_function(var/specific_action = 0)
|
||||
if(!relays || !relays.len) // No relays found. NTNet is down
|
||||
|
||||
Reference in New Issue
Block a user