mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-01 08:36:38 +02:00
Add extra safety in register_user() against shunned users.
This commit is contained in:
@@ -1023,6 +1023,10 @@ int _register_user(Client *client)
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Don't allow shunned users in */
|
||||
if (IsShunned(client))
|
||||
return 0;
|
||||
|
||||
/* Set client->local->sockhost:
|
||||
* First deal with the special 'localhost' case and
|
||||
* then with generic setting based on DNS.
|
||||
|
||||
Reference in New Issue
Block a user