From 1b4297e6095fea7258f99150fb79b49a01b5519b Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 5 Feb 2023 19:47:49 -0500 Subject: Fix what went wrong, part 2 --- command.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index 4a92ea2..ea7400a 100644 --- a/command.c +++ b/command.c @@ -138,10 +138,9 @@ static void commandMsg(uint id, char *params) { if (!params) return; char *nick = strsep(¶ms, " "); uint msg = idFor(nick); - (void)id; - //if (idColors[msg] == Default) { - // idColors[msg] = cacheGet(id, nick)->color; - //} + if (idColors[msg] == Default) { + idColors[msg] = completeColor(id, nick); + } if (params) { splitMessage("PRIVMSG", msg, params); } else { @@ -403,10 +402,9 @@ static void commandCS(uint id, char *params) { static void commandQuery(uint id, char *params) { if (!params) return; uint query = idFor(params); - (void)id; - //if (idColors[query] == Default) { - // idColors[query] = cacheGet(id, params)->color; - //} + if (idColors[query] == Default) { + idColors[query] = completeColor(id, params); + } windowShow(windowFor(query)); } @@ -729,6 +727,6 @@ void command(uint id, char *input) { void commandCompletion(void) { for (size_t i = 0; i < ARRAY_LEN(Commands); ++i) { if (!commandAvailable(&Commands[i])) continue; - completePush(None, Commands[i].cmd); + completePush(None, Commands[i].cmd, Default); } } -- cgit 1.4.1