Merge pull request #34470 from Cyberboss/MoveMotd

Moves load_motd to config controller
This commit is contained in:
oranges
2018-01-17 09:27:35 +13:00
committed by CitadelStationBot
parent d2d1a063a7
commit 2dd1f1f799
5 changed files with 15 additions and 9 deletions
+3 -2
View File
@@ -229,8 +229,9 @@ GLOBAL_VAR_INIT(normal_ooc_colour, OOC_COLOR)
set category = "OOC"
set desc ="Check the Message of the Day"
if(GLOB.join_motd)
to_chat(src, "<div class=\"motd\">[GLOB.join_motd]</div>")
var/motd = global.config.motd
if(motd)
to_chat(src, "<div class=\"motd\">[motd]</div>")
else
to_chat(src, "<span class='notice'>The Message of the Day has not been set.</span>")
+3 -2
View File
@@ -9,8 +9,9 @@
..()
if(GLOB.join_motd)
to_chat(src, "<div class=\"motd\">[GLOB.join_motd]</div>")
var/motd = global.config.motd
if(motd)
to_chat(src, "<div class=\"motd\">[motd]</div>")
if(GLOB.admin_notice)
to_chat(src, "<span class='notice'><b>Admin Notice:</b>\n \t [GLOB.admin_notice]</span>")