]> PatchyGit - patchyircd.git/commitdiff
fix GHOST command
authorEgor <egor@patchysicp.xyz>
Wed, 11 May 2022 21:31:55 +0000 (00:31 +0300)
committerEgor <egor@patchysicp.xyz>
Wed, 11 May 2022 21:31:55 +0000 (00:31 +0300)
irc.c

diff --git a/irc.c b/irc.c
index e5f29d9..7897217 100644 (file)
--- a/irc.c
+++ b/irc.c
@@ -304,7 +304,7 @@ int processPacket(struct client_data *client, char *source, char *command, int a
                                "Your information has been recorded. Contact IRCops for assistance with registration.");
                sendbuf(client);
        } else if(strcmp(command, "GHOST") == 0) {
-               if (client->umode & UMODE_REGISTERED)
+               if (!(client->umode & UMODE_REGISTERED))
                        return 0; // FIXME: error message
                struct client_data *cl = findClient(client->username);
                if (!cl)