Skip to content

Commit

Permalink
[Modular] Fixes Telepathy quirk sending empty messages (#1894) (#2805)
Browse files Browse the repository at this point in the history
No empty messages

Co-authored-by: SomeRandomOwl <[email protected]>
  • Loading branch information
Steals-The-PRs and SomeRandomOwl authored Apr 10, 2024
1 parent fe550bf commit 9c03ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modular_nova/modules/telepathy_quirk/code/telepathy_action.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@
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

if(get_dist(cast_on, owner) > cast_range)
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

Expand Down

0 comments on commit 9c03ff0

Please sign in to comment.