Merge pull request #300 from AttorneyOnline/fix-287

Add rate limit to pressing 'enter' in IC to prevent accidental blankposting
This commit is contained in:
oldmud0 2020-09-11 22:13:26 -05:00 committed by GitHub
commit 81ed7ab55e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1525,6 +1525,10 @@ void Courtroom::on_chat_return_pressed()
if ((anim_state < 3 || text_state < 2) && objection_state == 0) if ((anim_state < 3 || text_state < 2) && objection_state == 0)
return; return;
ui_ic_chat_message->blockSignals(true);
QTimer::singleShot(600, this, [=] {
ui_ic_chat_message->blockSignals(false);
});
// MS# // MS#
// deskmod# // deskmod#
// pre-emote# // pre-emote#