From 1169cab3fe94432ee9864e4103bd84bd389e74ad Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 12 May 2022 00:31:55 +0300 Subject: [PATCH] fix GHOST command --- irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.56.0