Skip to content

Commit

Permalink
Merge pull request #3291 from TheDZD/changelog-1-18-2016
Browse files Browse the repository at this point in the history
Makes additions to world.Topic() to make the in-game PR announcer work
  • Loading branch information
Fox-McCloud committed Jan 20, 2016
2 parents b9f29d6 + 8a3ae16 commit ac7bb33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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 << "<span class='announce'>PR: [input["announce"]]</span>"

/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)
Expand Down

0 comments on commit ac7bb33

Please sign in to comment.