From: Egor Date: Wed, 11 May 2022 21:31:55 +0000 (+0300) Subject: fix GHOST command X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=1169cab3fe94432ee9864e4103bd84bd389e74ad;p=patchyircd.git fix GHOST command --- diff --git a/irc.c b/irc.c index e5f29d9..7897217 100644 --- 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)