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:
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user