diff options
| author | Nakidai <nakidai@disroot.org> | 2026-02-09 13:15:23 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2026-02-09 13:15:23 +0300 |
| commit | 15b0b805fe2e739c9d89b54e1bfb26beb79c3112 (patch) | |
| tree | eacc7138a6a029778d824b6ff1958f516e9d203f /reply.c | |
| parent | 643b1b995679d9ea315d5767111f376c5af6c44b (diff) | |
| download | libreircd-15b0b805fe2e739c9d89b54e1bfb26beb79c3112.tar.gz libreircd-15b0b805fe2e739c9d89b54e1bfb26beb79c3112.zip | |
Add authorization for mode_channel()
User has to be authorized in order to be able to change channel's modes.
Diffstat (limited to 'reply.c')
| -rw-r--r-- | reply.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/reply.c b/reply.c index 04a00c2..adc2557 100644 --- a/reply.c +++ b/reply.c @@ -133,6 +133,13 @@ vreply(const struct Peer *peer, int number, va_list ap) getnick(peer), nick ), nick, _); + REPLY(324, WRITE( + ":%s 324 %s %s +%s", + hostname, + getnick(peer), + channel, + modes + ), channel, modes, _); REPLY(353, WRITE( ":%s 353 %s = %s :%s", hostname, @@ -252,6 +259,12 @@ vreply(const struct Peer *peer, int number, va_list ap) getnick(peer), reason ), reason, _); + REPLY(482, WRITE( + ":%s 482 %s %s :You're not channel operator", + hostname, + getnick(peer), + channel + ), channel, _); REPLY(484, WRITE( ":%s 484 %s :Your connection is restricted!", hostname, |