From 76e2c978829bc6ff7bfe6c49bfa3739e19370990 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sat, 10 Jan 2026 16:32:54 +0300 Subject: Add basic user mode handling So, now there're all modes listed in RFC 2812. The only what they do now, though, is a +r restricting user from changing their nick --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index c93a84d..26de6e6 100644 --- a/main.c +++ b/main.c @@ -16,6 +16,7 @@ #include "ircd.h" +#include #include #include #include @@ -38,7 +39,7 @@ main(int argc, char **argv) hostname = argv[1]; host = argv[2]; port = strtoul(argv[3], &p, 10); - if (*p || !port || port > 65535) + if (errno || *p || !port || port > 65535) errx(1, "invalid port"); #ifdef __OpenBSD__ -- cgit 1.4.1