From b1b6c6f62d69fb366fb347cb7e78a7791107f456 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Mon, 5 Dec 2022 10:25:57 +0100 Subject: add `/strophe` command to modify libstrophe-specific settings Signed-off-by: Steffen Jaeckel --- src/ui/console.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/ui/console.c') diff --git a/src/ui/console.c b/src/ui/console.c index 5937a42a..b1720415 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -2311,6 +2311,7 @@ cons_show_connection_prefs(void) cons_autoping_setting(); cons_autoconnect_setting(); cons_rooms_cache_setting(); + cons_strophe_setting(); cons_alert(NULL); } @@ -2994,3 +2995,18 @@ cons_mood_setting(void) cons_show("Display user mood (/mood) : OFF"); } } + +void +cons_strophe_setting(void) +{ + const char* sm_setting = "OFF"; + if (prefs_get_boolean(PREF_STROPHE_SM_ENABLED)) { + if (prefs_get_boolean(PREF_STROPHE_SM_RESEND)) { + sm_setting = "ON"; + } else { + sm_setting = "NO-RESEND"; + } + } + cons_show("XEP-0198 Stream-Management : %s", sm_setting); + cons_show("libstrophe Verbosity : %s", prefs_get_string(PREF_STROPHE_VERBOSITY)); +} -- cgit 1.4.1-2-gfad0