diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 18:39:14 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 18:39:14 +0100 |
commit | dabc16db56f9f50657e5611686862016776df3cc (patch) | |
tree | a488017c69033c51bab648c7ef7cac28d61bf279 | |
parent | b1f3b956c22915fdacc972435014719e2eb118c0 (diff) |
Reformatted sprintf_dohightlight()
-rw-r--r-- | FICS/utils.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index eb37575..0870b45 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -269,17 +269,17 @@ PUBLIC int pprintf_highlight(int p, char *format, ...) return retval; } -PUBLIC void sprintf_dohightlight(int p, char *s) +PUBLIC void +sprintf_dohightlight(int p, char *s) { - - if (parray[p].highlight & 0x01) - strcat(s, "\033[7m"); - if (parray[p].highlight & 0x02) - strcat(s, "\033[1m"); - if (parray[p].highlight & 0x04) - strcat(s, "\033[4m"); - if (parray[p].highlight & 0x08) - strcat(s, "\033[2m"); + if (parray[p].highlight & 0x01) + strcat(s, "\033[7m"); + if (parray[p].highlight & 0x02) + strcat(s, "\033[1m"); + if (parray[p].highlight & 0x04) + strcat(s, "\033[4m"); + if (parray[p].highlight & 0x08) + strcat(s, "\033[2m"); } PUBLIC int |