OOC Notifications

- - -
Both joining and posting to OOC now have accompanying audio.
Additionally, joining presents everyone with a message that you've connected. An example will be provided with the PR.
This commit is contained in:
ProbablyCarl
2021-10-21 20:35:58 -04:00
parent cd54a8a917
commit da0d696e42
4 changed files with 15 additions and 0 deletions
+4
View File
@@ -66,6 +66,10 @@ GLOBAL_VAR_INIT(normal_ooc_colour, "#002eb8")
//The linkify span classes and linkify=TRUE below make ooc text get clickable chat href links if you pass in something resembling a url
for(var/client/C in GLOB.clients)
if(C.prefs.chat_toggles & CHAT_OOC)
if(C.prefs.toggles)
C << sound('hyperstation/sound/effects/oocalert.ogg')
if(holder)
if(!holder.fakekey || C.holder)
if(check_rights_for(src, R_ADMIN))