Add /mam command

Regards https://github.com/profanity-im/profanity/issues/660
This commit is contained in:
Michael Vetter
2021-01-28 15:11:50 +01:00
parent 05bf065e68
commit 44fc3f0506
6 changed files with 38 additions and 3 deletions

View File

@@ -2082,6 +2082,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)
{

View File

@@ -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);