diff options
author | James Booth <boothj5@gmail.com> | 2012-10-04 23:38:01 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-10-04 23:38:01 +0100 |
commit | c9afe7b3462aafe898b90cad2febd7bc8ae06682 (patch) | |
tree | eca2c2bd65a6321363eb2b4cde7404162ed2d464 | |
parent | 9f08744ec0b11123a610b82ab0f596e125098ba1 (diff) | |
download | profani-tty-c9afe7b3462aafe898b90cad2febd7bc8ae06682.tar.gz |
Use colour prefs for offline message warning
-rw-r--r-- | src/windows.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/windows.c b/src/windows.c index c2c07015..effd7e6a 100644 --- a/src/windows.c +++ b/src/windows.c @@ -915,6 +915,10 @@ _show_status_string(WINDOW *win, const char * const from, wattron(win, COLOUR_DND); } else if (strcmp(show, "xa") == 0) { wattron(win, COLOUR_XA); + } else if (strcmp(show, "online") == 0) { + wattron(win, COLOUR_ONLINE); + } else { + wattron(win, COLOUR_OFFLINE); } } else if (strcmp(default_show, "online") == 0) { wattron(win, COLOUR_ONLINE); @@ -943,6 +947,10 @@ _show_status_string(WINDOW *win, const char * const from, wattroff(win, COLOUR_DND); } else if (strcmp(show, "xa") == 0) { wattroff(win, COLOUR_XA); + } else if (strcmp(show, "online") == 0) { + wattroff(win, COLOUR_ONLINE); + } else { + wattroff(win, COLOUR_OFFLINE); } } else if (strcmp(default_show, "online") == 0) { wattroff(win, COLOUR_ONLINE); |