From a4edc12d80bb6cda26e34595e3a6249eda433b9f Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 16 Jul 2014 22:56:58 +0100 Subject: [PATCH] Removed flag != 0's --- src/ui/window.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ui/window.c b/src/ui/window.c index 73511b0e..7ae0c61c 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -383,11 +383,11 @@ win_print(ProfWin *window, const char show_char, const char * const date_fmt, } if (strlen(from) > 0) { - if ((flags & NO_ME) != 0) { + if (flags & NO_ME) { colour = COLOUR_THEM; } - if ((flags & NO_COLOUR_FROM) != 0) { + if (flags & NO_COLOUR_FROM) { colour = 0; } @@ -404,10 +404,10 @@ win_print(ProfWin *window, const char show_char, const char * const date_fmt, wattron(window->win, attrs); - if ((flags & NO_EOL) == 0) { - wprintw(window->win, "%s\n", message+offset); - } else { + if (flags & NO_EOL) { wprintw(window->win, "%s", message+offset); + } else { + wprintw(window->win, "%s\n", message+offset); } wattroff(window->win, attrs);