mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 17:14:46 +02:00
Call update_known_user_cache() right before "Client connecting" log.
This is after PRE_LOCAL_CONNECT hook and can be useful in case some module in there did something to the user that made them known-users. And mention explicitly to module devs if they have things like authentication mods that may move users between known<->unknown that they should update the cache.
This commit is contained in:
@@ -9,8 +9,18 @@ This is work in progress and may not always be a stable version.
|
||||
### Changes:
|
||||
|
||||
### Fixes:
|
||||
* Harden the built-in HTTPS client
|
||||
|
||||
### Developers and protocol:
|
||||
* URL API: The OutgoingWebRequest `max_size` (introduced last release) now
|
||||
also caps file-backed downloads. Default for file-backed when left at 0
|
||||
is 50MB (`DOWNLOAD_MAX_SIZE_FILE_BACKED`). For memory-backed, it stays
|
||||
at 1MB like in 6.2.5 (`DOWNLOAD_MAX_SIZE_MEMORY_BACKED`).
|
||||
* If you do something to a user that would (potentially) move the user from
|
||||
`unknown-users` to `known-users` (or vice versa) then you should call
|
||||
`update_known_user_cache(client);` to update the known users cache.
|
||||
For example, if you have some authentication module that marks a user
|
||||
as IsLoggedIn.
|
||||
|
||||
UnrealIRCd 6.2.5
|
||||
-----------------
|
||||
|
||||
@@ -1185,6 +1185,8 @@ int _register_user(Client *client)
|
||||
|
||||
safe_free(client->local->passwd);
|
||||
|
||||
update_known_user_cache(client);
|
||||
|
||||
unreal_log(ULOG_INFO, "connect", "LOCAL_CLIENT_CONNECT", client,
|
||||
"Client connecting: $client ($client.user.username@$client.hostname) [$client.ip] $extended_client_info",
|
||||
log_data_string("extended_client_info", get_connect_extinfo(client)));
|
||||
|
||||
Reference in New Issue
Block a user