mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Removed empty message check from can_speak
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
return
|
||||
|
||||
var/message = copytext(sanitize(input(user, "Shout a message?", "Megaphone", null) as text),1,MAX_MESSAGE_LEN)
|
||||
if(!message)
|
||||
if(!message || message == "")
|
||||
return
|
||||
|
||||
message = capitalize(message)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
/mob/living/carbon/human/whisper(message as text)
|
||||
if(!IsVocal())
|
||||
return
|
||||
if(!message || message == "")
|
||||
return
|
||||
|
||||
if(say_disabled) //This is here to try to identify lag problems
|
||||
usr << "<span class='danger'>Speech is currently admin-disabled.</span>"
|
||||
|
||||
@@ -162,9 +162,6 @@ var/list/department_radio_keys = list(
|
||||
return 1
|
||||
|
||||
/mob/living/proc/can_speak_basic(message) //Check BEFORE handling of xeno and ling channels
|
||||
if(!message || message == "")
|
||||
return 0
|
||||
|
||||
if(client)
|
||||
if(client.prefs.muted & MUTE_IC)
|
||||
src << "<span class='danger'>You cannot speak in IC (muted).</span>"
|
||||
|
||||
Reference in New Issue
Block a user