From a8e6552a25a431633152f7a0fc56c7fa2aef2000 Mon Sep 17 00:00:00 2001 From: Egor Date: Wed, 5 Jul 2023 12:31:50 +0300 Subject: [PATCH] antispam 2 --- irc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/irc.c b/irc.c index 1caf67b..5ba0eb9 100644 --- a/irc.c +++ b/irc.c @@ -589,6 +589,12 @@ int processPacket(struct client_data *client, char *source, char *command, int a break; } } else { + if (!(client->umode & UMODE_REGISTERED)) { + msg_quit(client, "Quit: eel bearing atlantean", ""); + sendbuf_visible(client); + killConnection(client, true); + return 1; + } struct client_data *cl = findClient(args[0]); if (!cl) { return err_nosuchnick(client, args[0]), sendbuf(client), 0; -- 2.56.0