]> PatchyGit - patchyircd.git/commitdiff
fix NAMES
authorEgor <egor@patchysicp.xyz>
Fri, 6 May 2022 18:51:12 +0000 (21:51 +0300)
committerEgor <egor@patchysicp.xyz>
Fri, 6 May 2022 18:51:12 +0000 (21:51 +0300)
irc.c

diff --git a/irc.c b/irc.c
index 66e7548..eaa7426 100644 (file)
--- 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)) {