From 8a3ae16af1bfccc80f1d18f920b5e59b215f3cc5 Mon Sep 17 00:00:00 2001 From: TheDZD Date: Mon, 18 Jan 2016 21:40:05 -0500 Subject: [PATCH] Makes additions to world.Topic() to make the in-game PR announcer work --- code/world.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/world.dm b/code/world.dm index 5c9e86d963f5..5f60f4aa5cf2 100644 --- a/code/world.dm +++ b/code/world.dm @@ -210,6 +210,15 @@ var/world_topic_spam_protect_time = world.timeofday return show_player_info_irc(input["notes"]) + else if (copytext(T,1,9) == "announce") + var/input[] = params2list(T) + if(config.comms_password) + if(input["key"] != config.comms_password) + return "Bad Key" + else + for(var/client/C in clients) + C << "PR: [input["announce"]]" + /world/Reboot(var/reason, var/feedback_c, var/feedback_r, var/time) if (reason == 1) //special reboot, do none of the normal stuff if(usr)