Skip to content

Commit

Permalink
Blank OOC Message Fix (#19069)
Browse files Browse the repository at this point in the history
Fixes blank OOC messages being sent.
  • Loading branch information
1Sparky1 authored Apr 30, 2024
1 parent 8e54105 commit 333fc66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/game/verbs/ooc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

msg = sanitize(msg)

if(!msg)
return

if(!holder)
if(!GLOB.config.ooc_allowed)
to_chat(src, "<span class='danger'>OOC is globally muted.</span>")
Expand Down
6 changes: 6 additions & 0 deletions html/changelogs/blank-ooc-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
author: Sparky_hotdog

delete-after: True

changes:
- bugfix: "Entering a blank OOC message will now cancel the message, rather than sending nothing to chat."

0 comments on commit 333fc66

Please sign in to comment.