aboutsummaryrefslogtreecommitdiff
path: root/courtroom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'courtroom.cpp')
-rw-r--r--courtroom.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index dd03212b..15d50254 100644
--- a/courtroom.cpp
+++ b/courtroom.cpp
@@ -3017,7 +3017,10 @@ void Courtroom::on_call_mod_clicked()
if (ok)
{
text = text.left(100);
- ao_app->send_server_packet(new AOPacket("ZZ#" + text + "#%"));
+ if (!text.isEmpty())
+ ao_app->send_server_packet(new AOPacket("ZZ#" + text + "#%"));
+ else
+ ao_app->send_server_packet(new AOPacket("ZZ#%"));
}
ui_ic_chat_message->setFocus();