Don't use cached color to route away reply
Doesn't work when colors are disabled.weechat-hashes
parent
adfd1d2d8d
commit
c273621244
7
handle.c
7
handle.c
|
@ -1216,12 +1216,7 @@ static void handleReplyEndOfWhowas(struct Message *msg) {
|
||||||
static void handleReplyAway(struct Message *msg) {
|
static void handleReplyAway(struct Message *msg) {
|
||||||
require(msg, false, 3);
|
require(msg, false, 3);
|
||||||
// Might be part of a WHOIS response.
|
// Might be part of a WHOIS response.
|
||||||
uint id;
|
uint id = (replies[ReplyWhois] ? Network : idFor(msg->params[1]));
|
||||||
if (cacheGet(Network, msg->params[1])->color != Default) {
|
|
||||||
id = Network;
|
|
||||||
} else {
|
|
||||||
id = idFor(msg->params[1]);
|
|
||||||
}
|
|
||||||
uiFormat(
|
uiFormat(
|
||||||
id, (id == Network ? Warm : Cold), tagTime(msg),
|
id, (id == Network ? Warm : Cold), tagTime(msg),
|
||||||
"\3%02d%s\3\tis away: %s",
|
"\3%02d%s\3\tis away: %s",
|
||||||
|
|
Loading…
Reference in New Issue