aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCrystalwarrior <Varsash@Gmail.com>2021-01-15 00:45:30 +0300
committerGitHub <noreply@github.com>2021-01-14 15:45:30 -0600
commitc42496e20479edd72ab57860967aed8592bd383b (patch)
treea9b6e218f3d54288308fc49e9e247c9d0d3f8d97 /include
parent31798583a913c0f869e1bb1126a683a0b353a03c (diff)
Make chat rate limit configurable (#398)
Co-authored-by: stonedDiscord <10584181+stonedDiscord@users.noreply.github.com>
Diffstat (limited to 'include')
-rw-r--r--include/aoapplication.h3
-rw-r--r--include/aooptionsdialog.h2
2 files changed, 5 insertions, 0 deletions
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;