From c42496e20479edd72ab57860967aed8592bd383b Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Fri, 15 Jan 2021 00:45:30 +0300 Subject: Make chat rate limit configurable (#398) Co-authored-by: stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> --- include/aoapplication.h | 3 +++ include/aooptionsdialog.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index e96fefb5..5a02c3b4 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -222,6 +222,9 @@ public: // Current wait time between messages for the queue system int stay_time(); + // Returns Minimum amount of time (in miliseconds) that must pass before the next Enter key press will send your IC message. (new behaviour) + int get_chat_ratelimit(); + // Returns whether the log should go upwards (new behaviour) // or downwards (vanilla behaviour). bool get_log_goes_downwards(); diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h index 93b66779..74fc9af7 100644 --- a/include/aooptionsdialog.h +++ b/include/aooptionsdialog.h @@ -58,6 +58,8 @@ private: QCheckBox *ui_desync_logs_cb; QLabel *ui_instant_objection_lbl; QCheckBox *ui_instant_objection_cb; + QLabel *ui_chat_ratelimit_lbl; + QSpinBox *ui_chat_ratelimit_spinbox; QLabel *ui_log_ic_actions_lbl; QCheckBox *ui_log_ic_actions_cb; QFrame *ui_log_names_divider; -- cgit