summary refs log tree commit diff
path: root/reply.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-05 14:11:41 +0300
committerNakidai <nakidai@disroot.org>2026-02-05 14:11:41 +0300
commit68a91231a9480d591b43b359ad9a02af1faef07b (patch)
treed09fe703286c6450a266e83580b7e6eddec87961 /reply.c
parent5c240d0121aa82ad4ced73b70d3a1674ae81c764 (diff)
downloadlibreircd-68a91231a9480d591b43b359ad9a02af1faef07b.tar.gz
libreircd-68a91231a9480d591b43b359ad9a02af1faef07b.zip
Add OPER/SETOPER
SETOPER is a command for config, OPER is the one to authorize a user
Diffstat (limited to 'reply.c')
-rw-r--r--reply.c16
1 files changed, 16 insertions, 0 deletions
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,