diff options
author | June McEnroe <june@causal.agency> | 2023-02-05 19:47:49 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2023-02-05 19:47:49 -0500 |
commit | 1b4297e6095fea7258f99150fb79b49a01b5519b (patch) | |
tree | 3feaa576b3e001d243caa49bc20011c8791b25f6 /command.c | |
parent | Fix what went wrong, part 1 (diff) | |
download | catgirl-1b4297e6095fea7258f99150fb79b49a01b5519b.tar.gz catgirl-1b4297e6095fea7258f99150fb79b49a01b5519b.zip |
Fix what went wrong, part 2
Diffstat (limited to '')
-rw-r--r-- | command.c | 16 |
1 files changed, 7 insertions, 9 deletions
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); } } |