1
0
Fork 0

XEP-0392: config: add "color.nick" bool option

the option will control whether to enable coloration of usernames
based on the hashing algorithm described in XEP-0392.
This commit is contained in:
Aurelien Aptel 2019-12-03 20:49:22 +01:00
parent 19de066008
commit 15064d9739
3 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@ flash=false
vercheck=false
statuses.console=all
statuses.chat=all
color.nick=true
[connection]
autoping=60

View File

@ -1710,6 +1710,7 @@ _get_group(preference_t pref)
case PREF_CONSOLE_MUC:
case PREF_CONSOLE_PRIVATE:
case PREF_CONSOLE_CHAT:
case PREF_COLOR_NICK:
case PREF_STATUSBAR_SHOW_NAME:
case PREF_STATUSBAR_SHOW_NUMBER:
case PREF_STATUSBAR_SELF:
@ -1969,6 +1970,8 @@ _get_key(preference_t pref)
return "console.private";
case PREF_CONSOLE_CHAT:
return "console.chat";
case PREF_COLOR_NICK:
return "color.nick";
case PREF_BOOKMARK_INVITE:
return "bookmark.invite";
case PREF_PLUGINS_SOURCEPATH:

View File

@ -143,6 +143,7 @@ typedef enum {
PREF_CONSOLE_MUC,
PREF_CONSOLE_PRIVATE,
PREF_CONSOLE_CHAT,
PREF_COLOR_NICK,
PREF_BOOKMARK_INVITE,
PREF_PLUGINS_SOURCEPATH,
PREF_ROOM_LIST_CACHE,