1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Use colour prefs for offline message warning

This commit is contained in:
James Booth 2012-10-04 23:38:01 +01:00
parent 9f08744ec0
commit c9afe7b346

View File

@ -915,6 +915,10 @@ _show_status_string(WINDOW *win, const char * const from,
wattron(win, COLOUR_DND); wattron(win, COLOUR_DND);
} else if (strcmp(show, "xa") == 0) { } else if (strcmp(show, "xa") == 0) {
wattron(win, COLOUR_XA); 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) { } else if (strcmp(default_show, "online") == 0) {
wattron(win, COLOUR_ONLINE); wattron(win, COLOUR_ONLINE);
@ -943,6 +947,10 @@ _show_status_string(WINDOW *win, const char * const from,
wattroff(win, COLOUR_DND); wattroff(win, COLOUR_DND);
} else if (strcmp(show, "xa") == 0) { } else if (strcmp(show, "xa") == 0) {
wattroff(win, COLOUR_XA); 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) { } else if (strcmp(default_show, "online") == 0) {
wattroff(win, COLOUR_ONLINE); wattroff(win, COLOUR_ONLINE);