From 9c03ff07b99ab0bf6c5e3630984213b387b17301 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Thu, 11 Apr 2024 00:28:20 +0300 Subject: [PATCH] [Modular] Fixes Telepathy quirk sending empty messages (#1894) (#2805) No empty messages Co-authored-by: SomeRandomOwl <2568378+SomeRandomOwl@users.noreply.github.com> --- modular_nova/modules/telepathy_quirk/code/telepathy_action.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modular_nova/modules/telepathy_quirk/code/telepathy_action.dm b/modular_nova/modules/telepathy_quirk/code/telepathy_action.dm index e2ab3ef5e32..54a8712ad11 100644 --- a/modular_nova/modules/telepathy_quirk/code/telepathy_action.dm +++ b/modular_nova/modules/telepathy_quirk/code/telepathy_action.dm @@ -44,7 +44,7 @@ if(. & SPELL_CANCEL_CAST || blocked) return - message = autopunct_bare(capitalize(tgui_input_text(owner, "What do you wish to whisper to [cast_on]?", "[src]"))) + message = autopunct_bare(capitalize(tgui_input_text(owner, "What do you wish to whisper to [cast_on]?", "[src]", null))) if(QDELETED(src) || QDELETED(owner) || QDELETED(cast_on) || !can_cast_spell()) return . | SPELL_CANCEL_CAST @@ -52,7 +52,7 @@ owner.balloon_alert(owner, "they're too far!") return . | SPELL_CANCEL_CAST - if(!message) + if(!message || length(message) == 0) reset_spell_cooldown() return . | SPELL_CANCEL_CAST