Merge pull request #38553 from AutomaticFrenzy/patch/aghost-saymode

Allow admin ghosts to use .p and .d say prefixes
This commit is contained in:
Jordan Brown
2018-06-18 13:16:06 -05:00
committed by letterjay
parent 389e9584a3
commit 684ceb2125
3 changed files with 22 additions and 11 deletions
-10
View File
@@ -316,16 +316,6 @@ GLOBAL_LIST_INIT(department_radio_keys, list(
return 1
/mob/living/proc/get_message_mode(message)
var/key = copytext(message, 1, 2)
if(key == "#")
return MODE_WHISPER
else if(key == ";")
return MODE_HEADSET
else if(length(message) > 2 && (key in GLOB.department_radio_prefixes))
var/key_symbol = lowertext(copytext(message, 2, 3))
return GLOB.department_radio_keys[key_symbol]
/mob/living/proc/get_key(message)
var/key = copytext(message, 1, 2)
if(key in GLOB.department_radio_prefixes)