From 34acc0069a7725975f439fd92d3d183ebc8e6d4a Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 16 Oct 2025 18:03:40 +0200 Subject: up --- .gitignore | 5 ++++- README.md | 4 ++++ kirc.c | 8 ++++---- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index e282ca3..797196b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ kirc *.a -*.o \ No newline at end of file +*.o +.ccls/ +.ccls-cache/ +compile_commands.json diff --git a/README.md b/README.md index 3f5f7a5..0c3ce92 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +this is my fork of [mcpcpc/kirc](https://github.com/mcpcpc/kirc) and you should +not use this unless you want my mods +use his version instead + # kirc kirc (KISS for IRC) is a tiny IRC client written in POSIX C99. diff --git a/kirc.c b/kirc.c index 0df3b4c..20bd3ce 100644 --- a/kirc.c +++ b/kirc.c @@ -1062,13 +1062,13 @@ static void param_print_private(param p) struct tm *timeinfo; time ( &rawtime ); timeinfo = localtime ( &rawtime ); - char timestamp[9]; + char timestamp[13]; if (!small_screen) { if (strnlen(p->nickname, p->nicklen) > (size_t)p->nicklen - 8) { *(p->nickname + p->nicklen - 8) = '\0'; } - strcpy(timestamp, "["); - char buf[5]; + strcpy(timestamp, "\x1b[90m"); + char buf[8]; if (timeinfo->tm_hour < 10) { strcat(timestamp, "0"); } @@ -1077,7 +1077,7 @@ static void param_print_private(param p) if (timeinfo->tm_min < 10) { strcat(timestamp, "0"); } - snprintf(buf, sizeof(buf), "%d] ", timeinfo->tm_min); + snprintf(buf, sizeof(buf), "%d\x1b[0m ", timeinfo->tm_min); strcat(timestamp, buf); printf("%s", timestamp); } -- cgit v1.2.3