summary refs log tree commit diff
path: root/reply.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-12 22:47:39 +0300
committerNakidai <nakidai@disroot.org>2026-02-12 22:47:39 +0300
commit83c7d5f26cc3dcc93967a694b6b07447e839d6c1 (patch)
tree141d5693b773bc3ab2764c365fbd61afaaeab60e /reply.c
parentb6f425b803d6dd8ba90a558a0cab58e0ca470e6e (diff)
downloadlibreircd-83c7d5f26cc3dcc93967a694b6b07447e839d6c1.tar.gz
libreircd-83c7d5f26cc3dcc93967a694b6b07447e839d6c1.zip
Add LIST command
Though it's kinda basic, but still
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 de1d5c7..268e912 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(322, WRITE(
+		":%s 322 %s %s %s :%s",
+		hostname,
+		getnick(peer),
+		channel,
+		count,
+		topic
+	), channel, count, topic, _);
+	REPLY(323, WRITE(
+		":%s 323 %s :End of LIST",
+		hostname,
+		getnick(peer)
+	), _);
 	REPLY(324, WRITE(
 		":%s 324 %s %s +%s",
 		hostname,