From: Egor Date: Fri, 28 Jun 2024 18:45:50 +0000 (+0300) Subject: don't leak WEBIRC password X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=9dca55c6a31403cfc22263a710205be750821325;p=patchyircd.git don't leak WEBIRC password --- diff --git a/src/irc.c b/src/irc.c index 2de69fb..c4f3337 100644 --- a/src/irc.c +++ b/src/irc.c @@ -174,7 +174,8 @@ int parsePacket(struct client_data *client) { args[argc] = NULL; } fprintf(stderr, "parsed %"PRISocket": %s", client->FD, command); - if (strcmp(command, "PASS") != 0 && strcmp(command, "OPER") != 0 && strcmp(command, "NEWACC") != 0 && strcmp(command, "AUTHENTICATE") != 0) { + if (strcmp(command, "PASS") != 0 && strcmp(command, "OPER") != 0 && strcmp(command, "NEWACC") != 0 + && strcmp(command, "AUTHENTICATE") != 0 && strcmp(command, "WEBIRC") != 0) { for (int i = 0; i < argc; i++){ fprintf(stderr, " %d:%s", i, args[i]); }