diff options
| author | Nakidai <nakidai@disroot.org> | 2026-02-07 15:08:54 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2026-02-07 15:13:01 +0300 |
| commit | 643b1b995679d9ea315d5767111f376c5af6c44b (patch) | |
| tree | fb3a320dfb77c260b26f913bac924a0a75c9605b /reply.c | |
| parent | e6aff7291f742cf3a435b8103f98699eab75c948 (diff) | |
| download | libreircd-643b1b995679d9ea315d5767111f376c5af6c44b.tar.gz libreircd-643b1b995679d9ea315d5767111f376c5af6c44b.zip | |
Refactor MODE
MODE command is used to manage modes of both users and channels. But since these tasks are quite different it'd be nice to split them to not have an if statement whose both branches occupe whole function
Diffstat (limited to 'reply.c')
| -rw-r--r-- | reply.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/reply.c b/reply.c index c5609e9..04a00c2 100644 --- a/reply.c +++ b/reply.c @@ -263,6 +263,11 @@ vreply(const struct Peer *peer, int number, va_list ap) getnick(peer), *m ), m, _); + REPLY(502, WRITE( + ":%s 502 %s :Cannot change mode for other users", + hostname, + getnick(peer) + ), _); default: warn("unknown reply: %d", number); return WRITE( ":%s 421 %s err :Reply %d is not implemented yet", hostname, |