From: Egor Date: Wed, 5 Jul 2023 09:31:50 +0000 (+0300) Subject: antispam 2 X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=a8e6552a25a431633152f7a0fc56c7fa2aef2000;p=patchyircd.git antispam 2 --- 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;