about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-10-04 23:38:01 +0100
committerJames Booth <boothj5@gmail.com>2012-10-04 23:38:01 +0100
commitc9afe7b3462aafe898b90cad2febd7bc8ae06682 (patch)
treeeca2c2bd65a6321363eb2b4cde7404162ed2d464
parent9f08744ec0b11123a610b82ab0f596e125098ba1 (diff)
downloadprofani-tty-c9afe7b3462aafe898b90cad2febd7bc8ae06682.tar.gz
Use colour prefs for offline message warning
-rw-r--r--src/windows.c8
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);