diff --git a/code/modules/client/verbs/ooc.dm b/code/modules/client/verbs/ooc.dm index 1ddd959e37f6..36e3a6ab1ca4 100644 --- a/code/modules/client/verbs/ooc.dm +++ b/code/modules/client/verbs/ooc.dm @@ -71,7 +71,7 @@ GLOBAL_VAR_INIT(mentor_ooc_colour, YOGS_MENTOR_OOC_COLOUR) // yogs - mentor ooc keyname = "[icon2html('icons/member_content.dmi', world, "blag")][keyname]" //The linkify span classes and linkify=TRUE below make ooc text get clickable chat href links if you pass in something resembling a url //YOG START - Yog OOC - + //PINGS var/regex/ping = regex(@"@+(((([\s]{0,1}[^\s@]{0,30})[\s]*[^\s@]{0,30})[\s]*[^\s@]{0,30})[\s]*[^\s@]{0,30})","g")//Now lets check if they pinged anyone // Regex101 link to this specific regex, as of 3rd April 2019: https://regex101.com/r/YtmLDs/7 @@ -85,13 +85,13 @@ GLOBAL_VAR_INIT(mentor_ooc_colour, YOGS_MENTOR_OOC_COLOUR) // yogs - mentor ooc clientkeys += Y.ckey if(Y.holder && Y.holder.fakekey) clientkeys += Y.holder.fakekey - pinged &= clientkeys + pinged &= clientkeys if(pinged.len) if((world.time - last_ping_time) < 30) to_chat(src,"You are pinging too much! Please wait before pinging again.") return last_ping_time = world.time - + //MESSAGE CRAFTING -- This part handles actually making the messages that are to be displayed. var/bussedcolor = GLOB.OOC_COLOR ? GLOB.OOC_COLOR : "" // So /TG/ decided to fuck up how OOC colours are handled. // So we're sticking a weird into shit to handle their new system. @@ -104,7 +104,7 @@ GLOBAL_VAR_INIT(mentor_ooc_colour, YOGS_MENTOR_OOC_COLOUR) // yogs - mentor ooc else // Else if they're an AdminObserver oocmsg += "[find_admin_rank(src)]" // The header for an AO's OOC. //Check yogstation\code\module\client\verbs\ooc for the find_admin_rank definition. - + if(holder.fakekey) // If they're stealhminning oocmsg_toadmins = oocmsg + "OOC: [keyname]/([holder.fakekey]): [msg]" // ^ Message sent to people who should know when someone's stealthminning @@ -114,14 +114,15 @@ GLOBAL_VAR_INIT(mentor_ooc_colour, YOGS_MENTOR_OOC_COLOUR) // yogs - mentor ooc oocmsg += "OOC: [keyname]: [msg]" // Footer for an admin or AO's OOC. oocmsg_toadmins = oocmsg else - oocmsg = "[is_donator(src) ? "(Donator)" : ""]" if(is_mentor()) // If the speaker is a mentor - oocmsg += "" + oocmsg = "\[Mentor]" + oocmsg += "" else + oocmsg = "[is_donator(src) ? "(Donator)" : ""]" oocmsg += "" oocmsg += "OOC: [keyname]: [msg]" oocmsg_toadmins = oocmsg - + //SENDING THE MESSAGES OUT for(var/c in GLOB.clients) var/client/C = c // God bless typeless for-loops @@ -419,7 +420,7 @@ GLOBAL_VAR_INIT(mentor_ooc_colour, YOGS_MENTOR_OOC_COLOUR) // yogs - mentor ooc set name = "Show Policy" set desc = "Show special server rules related to your current character." set category = "OOC" - + //Collect keywords var/list/keywords = mob.get_policy_keywords() var/header = get_policy(POLICY_VERB_HEADER)