Moves load_motd to config controller

This commit is contained in:
Cyberboss
2018-01-15 10:44:25 -05:00
parent 5bceb36588
commit 6fe468e3b4
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>")