From 93e841b29ea567f8ddc31ce7f104dce5396a71ba Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 31 Jul 2022 16:28:08 -0400 Subject: Move cache color to an Entry struct So that more values can be added sensibly. --- command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index 0926c33..3acbe76 100644 --- a/command.c +++ b/command.c @@ -139,7 +139,7 @@ static void commandMsg(uint id, char *params) { char *nick = strsep(¶ms, " "); uint msg = idFor(nick); if (idColors[msg] == Default) { - idColors[msg] = cacheColor(id, nick); + idColors[msg] = cacheGet(id, nick)->color; } if (params) { splitMessage("PRIVMSG", msg, params); @@ -380,7 +380,7 @@ static void commandQuery(uint id, char *params) { if (!params) return; uint query = idFor(params); if (idColors[query] == Default) { - idColors[query] = cacheColor(id, params); + idColors[query] = cacheGet(id, params)->color; } windowShow(windowFor(query)); } -- cgit 1.4.1-2-gfad0