mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 22:46:21 +00:00
Use colour prefs for offline message warning
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user