From feeb625db4837f3f91a722cd7866ce7da253d593 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sat, 9 Nov 2024 23:56:15 +0000 Subject: Send NOTICE alert about failed authentication before disconnection alert. --- message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'message.c') diff --git a/message.c b/message.c index 7e5497e..b574586 100644 --- a/message.c +++ b/message.c @@ -925,7 +925,6 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int char remoteip[INET6_ADDRSTRLEN]; strncpy(remoteip, clients[clientindex].remoteip, INET6_ADDRSTRLEN); debugprint(DEBUG_SOME, "Password rejected, disconnecting client %s with fd %d.\n", remoteip, sourcefd); - disconnectclient(sourcefd, clients, ircdstate, settings, clientcodes); // Alert other clients about the failed authentication (if enabled) if (settings->alertauthfail) { char alertmsg[MAXDATASIZE]; @@ -937,6 +936,7 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int // "except" 0 since we trust this message sendtoallclients(clients, alertmsg, 0, settings); } + disconnectclient(sourcefd, clients, ircdstate, settings, clientcodes); } return 1; -- cgit v1.2.3