xep-0308: create setting to toggle lmc

and print settings if only `/correction` is run.
This commit is contained in:
Michael Vetter
2020-02-10 14:52:42 +01:00
parent c2d70a071f
commit dd8086772d
7 changed files with 27 additions and 11 deletions

View File

@@ -2024,7 +2024,14 @@ cons_os_setting(void)
void
cons_correction_setting(void)
{
cons_show("TODO");
if (prefs_get_boolean(PREF_CORRECTION_ALLOW)) {
cons_show("Last Message Correction (XEP-0308) (/correction) : ON");
} else {
cons_show("Last Message Correction (XEP-0308) (/correction) : OFF");
}
char cc = prefs_get_correction_char();
cons_show("LMC indication char (/correction char) : %c", cc);
}
void