aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-12-23 17:05:11 -0600
committeroldmud0 <oldmud0@users.noreply.github.com>2021-12-23 17:05:11 -0600
commitbcbe9a8a67356ae4f82a1020afb5c3cfa51ca79d (patch)
tree29237d9511f5cc02062a88600f484113478eef6a
parentd9e69cca06ef98e6a0ea9bc22a990e735ee5a65f (diff)
Remove client-side send waiting
This piece of code from another era is not needed anymore thanks to the message queue and decent server-side anti-flooding. Player input won't be thrown away since the client waits for an acknowledgement from the server before clearing the input box.
-rw-r--r--src/courtroom.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 8c59f1d2..fe923620 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1787,9 +1787,6 @@ void Courtroom::on_chat_return_pressed()
if (is_muted)
return;
- if (text_state < 2 && objection_state == 0)
- return;
-
ui_ic_chat_message->blockSignals(true);
QTimer::singleShot(ao_app->get_chat_ratelimit(), this,
[=] { ui_ic_chat_message->blockSignals(false); });