diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-01-28 15:11:50 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-01-28 15:11:50 +0100 |
commit | 44fc3f05069ec8981e953e3089af0d98026ac450 (patch) | |
tree | 3df39ee3d2ec7570698d8cea28035cd1ace648cf /src/ui | |
parent | 05bf065e68108d21adc3a5ec19d8dc3b0c5b8d26 (diff) | |
download | profani-tty-44fc3f05069ec8981e953e3089af0d98026ac450.tar.gz |
Add /mam command
Regards https://github.com/profanity-im/profanity/issues/660
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 10 | ||||
-rw-r--r-- | src/ui/ui.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index f701dc88..190adeea 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -2083,6 +2083,16 @@ cons_slashguard_setting(void) } void +cons_mam_setting(void) +{ + if (prefs_get_boolean(PREF_MAM)) { + cons_show("Message Archive Management (XEP-0313) (/mam) : ON"); + } else { + cons_show("Message Archive Management (XEP-0313) (/mam) : OFF"); + } +} + +void cons_show_connection_prefs(void) { cons_show("Connection preferences:"); diff --git a/src/ui/ui.h b/src/ui/ui.h index f26eaa10..8ce27840 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -321,6 +321,7 @@ void cons_os_setting(void); void cons_correction_setting(void); void cons_executable_setting(void); void cons_slashguard_setting(void); +void cons_mam_setting(void); void cons_show_contact_online(PContact contact, Resource* resource, GDateTime* last_activity); void cons_show_contact_offline(PContact contact, char* resource, char* status); void cons_theme_properties(void); |