summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorJune McEnroe2022-07-31 16:28:08 -0400
committerJune McEnroe2022-07-31 18:17:08 -0400
commit93e841b29ea567f8ddc31ce7f104dce5396a71ba (patch)
tree9d844670e8e88af199410f66c7c2e90a91233bcb /command.c
parentbe6052e9a933b4b792f65f50ea009bb68a3f5e93 (diff)
Move cache color to an Entry struct
So that more values can be added sensibly.
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
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(&params, " ");
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));
}