diff options
author | James Booth <boothj5@gmail.com> | 2014-10-09 22:02:39 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-10-09 22:02:39 +0100 |
commit | ce7cb3f40fd600e6c073945ea56868bd6f5aa05f (patch) | |
tree | 38a2a6d566ee752c5bdae516c1cd1c8d12e3b552 /src/ui/window.c | |
parent | cbe14d6e4e78baf205484274a139661c64b64144 (diff) | |
download | profani-tty-ce7cb3f40fd600e6c073945ea56868bd6f5aa05f.tar.gz |
Added occupants UI preference
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 26228307..43cfdb92 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -46,6 +46,7 @@ #endif #include "config/theme.h" +#include "config/preferences.h" #include "ui/ui.h" #include "ui/window.h" #include "xmpp/xmpp.h" @@ -60,7 +61,7 @@ win_create(const char * const title, int cols, win_type_t type) ProfWin *new_win = malloc(sizeof(struct prof_win_t)); new_win->from = strdup(title); - if (type == WIN_MUC) { + if (type == WIN_MUC && prefs_get_boolean(PREF_OCCUPANTS)) { new_win->win = newpad(PAD_SIZE, (cols/OCCUPANT_WIN_RATIO) * (OCCUPANT_WIN_RATIO-1)); wbkgd(new_win->win, COLOUR_TEXT); |