degesch: fix processing WHO replies
We don't want to print the reply for ourselves nor for unknown or PM-only users.
This commit is contained in:
parent
323a372389
commit
474657c7b3
|
@ -7510,11 +7510,11 @@ irc_handle_rpl_whoreply (struct server *s, const struct irc_message *msg)
|
||||||
struct user *user = str_map_find (&s->irc_users, nickname);
|
struct user *user = str_map_find (&s->irc_users, nickname);
|
||||||
|
|
||||||
// This makes sense to set only with the away-notify capability so far.
|
// This makes sense to set only with the away-notify capability so far.
|
||||||
// We track ourselves by other means and we can't track PM-only users yet.
|
if (!channel || !channel->show_names_after_who)
|
||||||
if (!channel || !channel->show_names_after_who
|
|
||||||
|| !user || user == s->irc_user || !user->channels)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// We track ourselves by other means and we can't track PM-only users yet.
|
||||||
|
if (user && user != s->irc_user && user->channels)
|
||||||
user->away = *chars == 'G';
|
user->away = *chars == 'G';
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue