ref: 259a1a4ccea8049c669f411cee602faec79a18bd
parent: 89eaf3db8243d1a73437b697a97c41ce24ef76d3
author: mkf <mkf@cloud9p.org>
date: Tue Sep 26 05:30:11 EDT 2023
turns out we need to filter empty lines
--- a/ircd.c
+++ b/ircd.c
@@ -977,6 +977,8 @@
Reply r;
cmd = strtok(msg, " :\r");
+ if(cmd == nil)
+ return 1; /* silently drop it */
if(strcmp(cmd, "PING") == 0){
r.argv[0] = strtok(0, " \r"); /* pong */