diff options
| author | Nakidai <nakidai@disroot.org> | 2026-02-13 00:52:30 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2026-02-13 00:52:30 +0300 |
| commit | d493c4a9b9bb1db0da7418a0a2797c5f2b3d34ff (patch) | |
| tree | a6b9ce9905864ae4696e3fa0431d8a02096d1877 /reply.c | |
| parent | 3f2bbeda9cae1e3d3f50d984549c82a5a29d2f6f (diff) | |
| download | libreircd-d493c4a9b9bb1db0da7418a0a2797c5f2b3d34ff.tar.gz libreircd-d493c4a9b9bb1db0da7418a0a2797c5f2b3d34ff.zip | |
Add TOPIC and t channel flag support
Yay, now there're topic!!
Diffstat (limited to 'reply.c')
| -rw-r--r-- | reply.c | 15 |
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, |