mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-08-22 20:26:15 +01:00
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:
@@ -274,6 +274,17 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
|
||||
message_admins("<font color='red'><B>Notice: </B><font color='blue'>[key_name_admin(src)] has the same [matches] as [key_name_admin(C)] (no longer logged in). </font>")
|
||||
log_access("Notice: [key_name(src)] has the same [matches] as [key_name(C)] (no longer logged in).")
|
||||
|
||||
for(var/client/C in GLOB.clients)
|
||||
if( !C )
|
||||
continue
|
||||
|
||||
if(C.prefs)//supposedly fixes a runtime with the following lines. Ripped from OldPollo. I miss you, Lads. :(
|
||||
if(C.prefs.toggles & CHAT_OOC)
|
||||
to_chat(world, "<span class='notice'><b>[src.key] has connected to the server.</b></span>")
|
||||
|
||||
if(C.prefs.toggles)
|
||||
C << sound('hyperstation/sound/effects/oocjoin.ogg')
|
||||
|
||||
if(GLOB.player_details[ckey])
|
||||
player_details = GLOB.player_details[ckey]
|
||||
player_details.byond_version = full_version
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user