summary refs log tree commit diff
path: root/reply.c
diff options
context:
space:
mode:
Diffstat (limited to 'reply.c')
-rw-r--r--reply.c15
1 files changed, 14 insertions, 1 deletions
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,