diff options
author | June McEnroe <june@causal.agency> | 2022-08-06 15:38:51 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-08-06 15:38:51 -0400 |
commit | c273621244156b351468e3c928387166b24f5ff4 (patch) | |
tree | c2cdc947877a2b2fe42375b7455dfbdea79887ec | |
parent | Track prefix bits (diff) | |
download | catgirl-c273621244156b351468e3c928387166b24f5ff4.tar.gz catgirl-c273621244156b351468e3c928387166b24f5ff4.zip |
Don't use cached color to route away reply
Doesn't work when colors are disabled.
-rw-r--r-- | handle.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/handle.c b/handle.c index f5e4f32..b8434c6 100644 --- a/handle.c +++ b/handle.c @@ -1216,12 +1216,7 @@ static void handleReplyEndOfWhowas(struct Message *msg) { static void handleReplyAway(struct Message *msg) { require(msg, false, 3); // Might be part of a WHOIS response. - uint id; - if (cacheGet(Network, msg->params[1])->color != Default) { - id = Network; - } else { - id = idFor(msg->params[1]); - } + uint id = (replies[ReplyWhois] ? Network : idFor(msg->params[1])); uiFormat( id, (id == Network ? Warm : Cold), tagTime(msg), "\3%02d%s\3\tis away: %s", |