From d493c4a9b9bb1db0da7418a0a2797c5f2b3d34ff Mon Sep 17 00:00:00 2001 From: Nakidai Date: Fri, 13 Feb 2026 00:52:30 +0300 Subject: Add TOPIC and t channel flag support Yay, now there're topic!! --- reply.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'reply.c') diff --git a/reply.c b/reply.c index 268e912..41fcb4a 100644 --- a/reply.c +++ b/reply.c @@ -87,7 +87,7 @@ vreply(const struct Peer *peer, int number, va_list ap) creation ), _); REPLY(4, WRITE( - ":%s 004 %s :%s libreircd-" IRCD_VERSION " aiwroOs os", + ":%s 004 %s :%s libreircd-" IRCD_VERSION " aiwroOs nost", hostname, getnick(peer), hostname @@ -153,6 +153,19 @@ vreply(const struct Peer *peer, int number, va_list ap) channel, modes ), channel, modes, _); + REPLY(331, WRITE( + ":%s 331 %s %s :No topic is set", + hostname, + getnick(peer), + channel + ), channel, _); + REPLY(332, WRITE( + ":%s 332 %s %s :%s", + hostname, + getnick(peer), + channel, + topic + ), channel, topic, _); REPLY(353, WRITE( ":%s 353 %s = %s :%s", hostname, -- cgit 1.4.1