From 676f912f8eeef82836a9b561b260b83d30b25c57 Mon Sep 17 00:00:00 2001 From: Egor Date: Fri, 6 May 2022 21:51:12 +0300 Subject: [PATCH] fix NAMES --- irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc.c b/irc.c index 66e7548..eaa7426 100644 --- a/irc.c +++ b/irc.c @@ -662,7 +662,7 @@ void channel_sendnames(struct client_data *client, struct channel *chan) { struct trie_find *f = NULL; databuf.len = 0; - if (trie_findfirst(&f, &client_map) == 1) + if (trie_findfirst(&f, &chan->members) == 1) do { struct client_data *cl = f->n->value; if (rpl_namreply(client, chan, cl)) { -- 2.56.0