1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 16:13:13 +02:00

Fix HOOKTYPE_IS_HANDSHAKE_FINISHED not called at two places where

register_user() is called.
This commit is contained in:
Bram Matthys
2023-10-23 19:02:03 +02:00
parent 099e99504f
commit 7649520f63
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -483,7 +483,7 @@ int authprompt_sasl_result(Client *client, int success)
}
/* Authentication was a success */
if (*client->name && client->user && *client->user->username && IsNotSpoof(client))
if (is_handshake_finished(client))
{
register_user(client);
/* User MAY be killed now. But since we 'return 1' below, it's safe */
+1 -1
View File
@@ -209,7 +209,7 @@ static void cap_end(Client *client, const char *arg)
ClearCapabilityFast(client, CAP_IN_PROGRESS);
if (*client->name && client->user && *client->user->username && IsNotSpoof(client))
if (is_handshake_finished(client))
register_user(client);
}