summary refs log tree commit diff
path: root/reply.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-05 12:53:36 +0300
committerNakidai <nakidai@disroot.org>2026-02-05 12:53:36 +0300
commitc638c90e5545111fd1217c777724397759dc06d7 (patch)
tree9917543314f7f74ea1bca2004bc4f05711d4ea78 /reply.c
parenteba9ea345af1f259bf27936f3d0941ab2a2f5bfb (diff)
downloadlibreircd-c638c90e5545111fd1217c777724397759dc06d7.tar.gz
libreircd-c638c90e5545111fd1217c777724397759dc06d7.zip
Add NAMES
So not it can show who's on the channel, yay. Though, no showing ops
Diffstat (limited to 'reply.c')
-rw-r--r--reply.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/reply.c b/reply.c
index a295da8..6670ecf 100644
--- a/reply.c
+++ b/reply.c
@@ -133,6 +133,19 @@ vreply(const struct Peer *peer, int number, va_list ap)
 		getnick(peer),
 		nick
 	), nick, _);
+	REPLY(353, WRITE(
+		":%s 353 %s = %s :%s",
+		hostname,
+		getnick(peer),
+		channel,
+		nicklist
+	), channel, nicklist, _);
+	REPLY(366, WRITE(
+		":%s 366 %s %s :End of NAMES list",
+		hostname,
+		getnick(peer),
+		channel
+	), channel, _);
 	REPLY(401, WRITE(
 		":%s 401 %s %s :No such nick/channel",
 		hostname,