diff options
author | Paul Fariello <paul@fariello.eu> | 2020-02-05 15:29:17 +0100 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2020-02-05 15:29:17 +0100 |
commit | be7157065cb3be92a75f4c7929e39d65dfdc6208 (patch) | |
tree | df3c396a1c28f173d349f87640fd69894ae33ef4 /src/config | |
parent | 7f956aa4f5d81af09ab5bda230438324160e8385 (diff) | |
download | profani-tty-be7157065cb3be92a75f4c7929e39d65dfdc6208.tar.gz |
Add default pref for PREF_COLOR_NICK
Fix a segfault if corresponding preference is not saved in config file.
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index bd13cfd1..456aab7d 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -2137,6 +2137,8 @@ _get_default_string(preference_t pref) return "redact"; case PREF_OMEMO_POLICY: return "automatic"; + case PREF_COLOR_NICK: + return "off"; default: return NULL; } |