From 0c2896456ca477117f0d47538385ecfe77588cbe Mon Sep 17 00:00:00 2001 From: AffectedArc07 Date: Mon, 20 Jul 2020 18:51:19 +0100 Subject: [PATCH] Adds a world/Topic entry for announcing by server --- code/game/world.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/game/world.dm b/code/game/world.dm index fdb0b8f63be..02c613e9ac8 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -266,6 +266,13 @@ GLOBAL_VAR_INIT(world_topic_spam_protect_time, world.timeofday) update_status() return "Set listed status to invisible." + + else if("hostannounce" in input) + if(!key_valid) + return keySpamProtect(addr) + + to_chat(world, "
Server Announcement: [input["message"]]
") + /proc/keySpamProtect(var/addr) if(GLOB.world_topic_spam_protect_ip == addr && abs(GLOB.world_topic_spam_protect_time - world.time) < 50) spawn(50)