mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 17:56:22 +00:00
Add option to only allow messages from jids in roster
`/silence on` will throw away all messages (type: chat, normal) that come from jids that are not in the roster. Implement https://github.com/profanity-im/profanity/issues/955
This commit is contained in:
@@ -2178,6 +2178,16 @@ cons_mam_setting(void)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cons_silence_setting(void)
|
||||
{
|
||||
if (prefs_get_boolean(PREF_SILENCE_NON_ROSTER)) {
|
||||
cons_show("Block all messages from JIDs that are not in the roster (/silence) : ON");
|
||||
} else {
|
||||
cons_show("Block all messages from JIDs that are not in the roster (/silence) : OFF");
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_connection_prefs(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user