diff options
author | James Booth <boothj5@gmail.com> | 2014-11-09 23:29:25 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-11-09 23:29:25 +0000 |
commit | 46583839df397ce9634d147a28e79134b7045ea9 (patch) | |
tree | d3f699fe3c29d7b5a46990cfae261fef1599d40e /src/config | |
parent | 70501f5dbf1b8d80b80c7b24e0e6ab46921ba7dd (diff) | |
download | profani-tty-46583839df397ce9634d147a28e79134b7045ea9.tar.gz |
Added /wrap user preference for enabling/disabling word wrapping
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 4 | ||||
-rw-r--r-- | src/config/preferences.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 1447160b..5b00efac 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -452,6 +452,7 @@ _get_group(preference_t pref) case PREF_STATUSES_MUC: case PREF_MUC_PRIVILEGES: case PREF_PRESENCE: + case PREF_WRAP: return PREF_GROUP_UI; case PREF_STATES: case PREF_OUTTYPE: @@ -570,6 +571,8 @@ _get_key(preference_t pref) return "shared"; case PREF_PRESENCE: return "presence"; + case PREF_WRAP: + return "wrap"; default: return NULL; } @@ -592,6 +595,7 @@ _get_default_boolean(preference_t pref) case PREF_OCCUPANTS: case PREF_MUC_PRIVILEGES: case PREF_PRESENCE: + case PREF_WRAP: return TRUE; default: return FALSE; diff --git a/src/config/preferences.h b/src/config/preferences.h index a4dfa1f1..11d93feb 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -60,6 +60,7 @@ typedef enum { PREF_OCCUPANTS, PREF_MUC_PRIVILEGES, PREF_PRESENCE, + PREF_WRAP, PREF_STATUSES, PREF_STATUSES_CONSOLE, PREF_STATUSES_CHAT, |