wm: ircd

Download patch

ref: eff35fb697d4b13385578194a9c4c557c1274493
parent: 259a1a4ccea8049c669f411cee602faec79a18bd
author: mkf <mkf@cloud9p.org>
date: Tue Sep 26 09:18:51 EDT 2023

add ERR_NOMOTD (422), needed by matterbridge

--- a/ircd.c
+++ b/ircd.c
@@ -34,6 +34,7 @@
 	ERR_NOSUCHCHANNEL = 403,
 	ERR_CANNOTSENDTOCHAN = 404,
 	ERR_UNKNOWNCOMMAND = 421,
+	ERR_NOMOTD = 422,
 	ERR_NONICKNAMEGIVEN = 431,
 	ERR_ERRONEUSNICKNAME = 432,
 	ERR_NICKNAMEINUSE = 433,
@@ -397,8 +398,11 @@
 		/* r->argv is: command */
 		n = snprint(buf, n, ":%s 421 %s %s :Unknown command\r\n", servername, c->nick, r->argv[0]);
 		break;
+	case ERR_NOMOTD:
+		n = snprint(buf, n, ":%s 422 %s :No motd\r\n", servername, c->nick);
+		break;
 	case ERR_NONICKNAMEGIVEN:
-		n = snprint(buf, n, ":%s 421 %s :No nickname given\r\n", servername, c->nick);
+		n = snprint(buf, n, ":%s 431 %s :No nickname given\r\n", servername, c->nick);
 		break;
 	case ERR_ERRONEUSNICKNAME:
 		/* r->argv[0] is nick */