degesch: don't eat NAMES for unknown channels

This commit is contained in:
Přemysl Eric Janouch 2020-10-16 17:57:32 +02:00
parent 1ff80ddd10
commit e1a4fab40d
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 3 additions and 0 deletions

View File

@ -7300,6 +7300,9 @@ irc_handle_rpl_namreply (struct server *s, const struct irc_message *msg)
struct channel *channel = str_map_find (&s->irc_channels, channel_name);
if (channel)
cstr_split (nicks, " ", true, &channel->names_buf);
else
log_server_status (s, s->buffer, "Users on #S: #S",
channel_name, nicks);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -