1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

rosterwin: remove duplicate if

This commit is contained in:
Michael Vetter 2020-01-22 09:30:09 +01:00
parent f76deea14e
commit dac6d088d0

View File

@ -370,9 +370,6 @@ _rosterwin_contact(ProfLayoutSplit *layout, PContact contact)
int colour; int colour;
if (prefs_get_boolean(PREF_ROSTER_COLOR_NICK)) { if (prefs_get_boolean(PREF_ROSTER_COLOR_NICK)) {
colour = theme_hash_attrs(name); colour = theme_hash_attrs(name);
}
if (prefs_get_boolean(PREF_ROSTER_COLOR_NICK)) {
wattron(layout->subwin, colour); wattron(layout->subwin, colour);
} else { } else {
wattron(layout->subwin, theme_attrs(presence_colour)); wattron(layout->subwin, theme_attrs(presence_colour));