mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 10:06:22 +00:00
Implemented /console private setting
This commit is contained in:
@@ -1157,6 +1157,7 @@ _get_group(preference_t pref)
|
||||
case PREF_INPBLOCK_DYNAMIC:
|
||||
case PREF_TLS_SHOW:
|
||||
case PREF_CONSOLE_MUC:
|
||||
case PREF_CONSOLE_PRIVATE:
|
||||
case PREF_CONSOLE_CHAT:
|
||||
return PREF_GROUP_UI;
|
||||
case PREF_STATES:
|
||||
@@ -1382,6 +1383,8 @@ _get_key(preference_t pref)
|
||||
return "lastactivity";
|
||||
case PREF_CONSOLE_MUC:
|
||||
return "console.muc";
|
||||
case PREF_CONSOLE_PRIVATE:
|
||||
return "console.private";
|
||||
case PREF_CONSOLE_CHAT:
|
||||
return "console.chat";
|
||||
default:
|
||||
@@ -1487,7 +1490,7 @@ _get_default_string(preference_t pref)
|
||||
case PREF_PGP_LOG:
|
||||
return "redact";
|
||||
case PREF_CONSOLE_MUC:
|
||||
return "all";
|
||||
case PREF_CONSOLE_PRIVATE:
|
||||
case PREF_CONSOLE_CHAT:
|
||||
return "all";
|
||||
default:
|
||||
|
||||
@@ -133,6 +133,7 @@ typedef enum {
|
||||
PREF_TLS_SHOW,
|
||||
PREF_LASTACTIVITY,
|
||||
PREF_CONSOLE_MUC,
|
||||
PREF_CONSOLE_PRIVATE,
|
||||
PREF_CONSOLE_CHAT,
|
||||
} preference_t;
|
||||
|
||||
|
||||
@@ -410,6 +410,7 @@ _load_preferences(void)
|
||||
_set_string_preference("statuses.chat", PREF_STATUSES_CHAT);
|
||||
_set_string_preference("statuses.muc", PREF_STATUSES_MUC);
|
||||
_set_string_preference("console.muc", PREF_CONSOLE_MUC);
|
||||
_set_string_preference("console.private", PREF_CONSOLE_PRIVATE);
|
||||
_set_string_preference("console.chat", PREF_CONSOLE_CHAT);
|
||||
_set_string_preference("roster.by", PREF_ROSTER_BY);
|
||||
_set_string_preference("roster.order", PREF_ROSTER_ORDER);
|
||||
|
||||
Reference in New Issue
Block a user