From b6856eac8b706778e6216fc98e52dd499cc88a3c Mon Sep 17 00:00:00 2001 From: Walter0o Date: Fri, 11 Jul 2014 09:19:23 +0200 Subject: [PATCH] can't trust players with anything --- code/modules/mob/living/carbon/human/human.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 50c3076b3a..4f6368ad6f 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1475,6 +1475,8 @@ text = input("What would you like to say?", "Speak to creature", null, null) + text = trim(copytext(sanitize(text), 1, MAX_MESSAGE_LEN)) + if(!text) return var/mob/M = targets[target] @@ -1483,10 +1485,12 @@ src << "Not even a [src.species.name] can speak to the dead." return + log_say("[key_name(src)] communed to [key_name(M)]: [text]") + M << "\blue Like lead slabs crashing into the ocean, alien thoughts drop into your mind: [text]" if(istype(M,/mob/living/carbon/human)) var/mob/living/carbon/human/H = M if(H.species.name == src.species.name) return H << "\red Your nose begins to bleed..." - H.drip(1) \ No newline at end of file + H.drip(1)