summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/handle.c b/handle.c
index c760144..75d42a9 100644
--- a/handle.c
+++ b/handle.c
@@ -124,9 +124,9 @@ names(struct Message *msg, struct Peer *peer)
 			continue;
 
 		memset(buf, 0, sizeof(buf));
-		for (j = 0; j < peer->channels[i]->users_c; ++j)
+		for (j = 0; j < peer->channels[i]->peers_c; ++j)
 		{
-			strlcat(buf, peer->channels[i]->users[j]->nick, sizeof(buf));
+			strlcat(buf, peer->channels[i]->peers[j].p->nick, sizeof(buf));
 			if (strlen(buf) >= MESSAGE_MAX - 4*PEER_NICK_MAX)
 			{
 				reply(peer, 353, peer->channels[i]->name, buf);