wm: ircd

Download patch

ref: 4d1358e76bdcf18d76d4c74af87c93ad5a418007
parent: c3637bfe1d08569e21f54d8244c28f73f2e2c443
author: mkf <mkf@cloud9p.org>
date: Tue Aug 13 01:52:27 EDT 2024

handle lower case characters as well

--- a/ircd.c
+++ b/ircd.c
@@ -1078,6 +1078,9 @@
 	if(cmd == nil)
 		return 1; /* silently drop it */
 
+	for(int i = 0 ; i < strlen(cmd) ; i++)
+		cmd[i] = toupper(cmd[i]);
+
 	if(strcmp(cmd, "PING") == 0){
 		r.argv[0] = strtok(0, " \r"); /* pong */
 		r.code = PONG;