From 68a91231a9480d591b43b359ad9a02af1faef07b Mon Sep 17 00:00:00 2001 From: Nakidai Date: Thu, 5 Feb 2026 14:11:41 +0300 Subject: Add OPER/SETOPER SETOPER is a command for config, OPER is the one to authorize a user --- reply.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'reply.c') diff --git a/reply.c b/reply.c index 6670ecf..c5609e9 100644 --- a/reply.c +++ b/reply.c @@ -146,6 +146,11 @@ vreply(const struct Peer *peer, int number, va_list ap) getnick(peer), channel ), channel, _); + REPLY(381, WRITE( + ":%s 381 %s :You are now an IRC operator", + hostname, + getnick(peer) + ), _); REPLY(401, WRITE( ":%s 401 %s %s :No such nick/channel", hostname, @@ -179,6 +184,12 @@ vreply(const struct Peer *peer, int number, va_list ap) hostname, getnick(peer) ), _); + REPLY(420, WRITE( + ":%s 420 %s %s :OPER list is full", + hostname, + getnick(peer), + nick + ), nick, _); REPLY(421, WRITE( ":%s 421 %s %s :Unknown command", hostname, @@ -224,6 +235,11 @@ vreply(const struct Peer *peer, int number, va_list ap) hostname, getnick(peer) ), _); + REPLY(464, WRITE( + ":%s 464 %s :Pasword incorrect", + hostname, + getnick(peer) + ), _); REPLY(471, WRITE( ":%s 471 %s %s :Cannot join channel (+l)", hostname, -- cgit 1.4.1