summaryrefslogtreecommitdiffstats
path: root/Scripts/osc_ctrl.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-02-04 13:16:37 -0800
committeryum <yum.food.vr@gmail.com>2023-02-04 15:26:41 -0800
commit92fea304613bacfa014e1fbaf9fddb82e4f33d62 (patch)
tree5d1afa8c65f325cc3d6a18d15cfe6ff09deedebf /Scripts/osc_ctrl.py
parente5ef126513781096b0d14d2d77252a338baf7693 (diff)
Built-in chatbox no longer shows empty messages
* Reduce noise on/off indicator volume by 50%
Diffstat (limited to 'Scripts/osc_ctrl.py')
-rw-r--r--Scripts/osc_ctrl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Scripts/osc_ctrl.py b/Scripts/osc_ctrl.py
index e57a843..93b236b 100644
--- a/Scripts/osc_ctrl.py
+++ b/Scripts/osc_ctrl.py
@@ -142,6 +142,9 @@ def pageMessage(osc_state: OscState, msg: str) -> bool:
# truncates data at about 150 chars, so just send the suffix of the message for
# now.
def pageMessageBuiltin(osc_state: OscState, msg: str) -> bool:
+ if len(msg) == 0 or msg.isspace():
+ return False # Not paging
+
msg_begin = max(len(msg) - 140, 0)
msg_suffix = msg[msg_begin:len(msg)]