diff options
| author | Cerapter <cerap@protonmail.com> | 2018-09-03 13:03:02 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-09-03 13:03:02 +0200 |
| commit | e45e138fb5c8856e3047b5c60c957782a90f5598 (patch) | |
| tree | 38f416ec3fc8411b2f0153c8829e556a6f839e5a | |
| parent | 22e0cb8e1a97e57a6235c23afc6508f5e441aefc (diff) | |
'Call mod' button can now send argumentless modcalls again.
This stopped the client from being able to call a mod in vanilla servers
before.
| -rw-r--r-- | courtroom.cpp | 5 |
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(); |
