Fixes OOC colour in whitemode, and OOC pings (#5127)

This commit is contained in:
Gary Lafortune
2019-04-17 19:47:48 -05:00
committed by GitHub
parent 9968919350
commit 0e2ca8c051
3 changed files with 7 additions and 3 deletions

View File

@@ -79,7 +79,11 @@ GLOBAL_VAR_INIT(mentor_ooc_colour, YOGS_MENTOR_OOC_COLOUR) // yogs - mentor ooc
while(ping.Find(msg))
for(var/x in ping.group)
pinged |= ckey(x)
pinged &= GLOB.clients // If the "SENDING MESSAGES OUT" for-loop starts iterating over something else, make this GLOB *that* something else.
var/list/clientkeys = list()
for(var/x in GLOB.clients)// If the "SENDING MESSAGES OUT" for-loop starts iterating over something else, make this GLOB *that* something else.
var/client/Y = x //God bless typeless for-loops
clientkeys += Y.ckey
pinged &= clientkeys
if(pinged.len)
if((world.time - last_ping_time) < 30)
to_chat(src,"<span class='danger'>You are pinging too much! Please wait before pinging again.</span>")

View File

@@ -260,7 +260,7 @@ h1.alert, h2.alert {color: #000000;}
em {font-style: normal; font-weight: bold;}
.ooc { font-weight: bold;}
.ooc {color: #0000d1; font-weight: bold;} /* yogs - OOC */
.adminobserverooc {color: #0099cc; font-weight: bold;}
.adminooc {color: #700038; font-weight: bold;}

View File

@@ -25,7 +25,7 @@ em {font-style: normal; font-weight: bold;}
.prefix { font-weight: bold;}
.ooc { font-weight: bold;}
.ooc {color: #0000d1; font-weight: bold;} /* yogs - OOC */
.adminobserverooc {color: #0099cc; font-weight: bold;}
.adminooc {color: #700038; font-weight: bold;}