]> PatchyGit - patchyircd.git/commitdiff
don't leak WEBIRC password
authorEgor <egor@patchysicp.xyz>
Fri, 28 Jun 2024 18:45:50 +0000 (21:45 +0300)
committerEgor <egor@patchysicp.xyz>
Fri, 28 Jun 2024 18:45:50 +0000 (21:45 +0300)
src/irc.c

index 2de69fb..c4f3337 100644 (file)
--- 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]);
                }