Mercurial > prosody-modules
comparison mod_client_management/mod_client_management.lua @ 5753:3730992d0c7c
mod_client_management: Include session in new-client event
Needed by mod_audit_auth
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 02 Dec 2023 11:06:47 +0100 |
| parents | 8afa0fb8a73e |
| children | e199f33f7a2e |
comparison
equal
deleted
inserted
replaced
| 5752:c27eaa7117d6 | 5753:3730992d0c7c |
|---|---|
| 77 end | 77 end |
| 78 -- Store updated state | 78 -- Store updated state |
| 79 client_store:set_key(username, client_id, client_state); | 79 client_store:set_key(username, client_id, client_state); |
| 80 | 80 |
| 81 if is_new_client then | 81 if is_new_client then |
| 82 module:fire_event("client_management/new-client", { client = client_state }); | 82 module:fire_event("client_management/new-client", { client = client_state; session = session }); |
| 83 end | 83 end |
| 84 end | 84 end |
| 85 end); | 85 end); |
| 86 | 86 |
| 87 local function find_client_by_resource(username, resource) | 87 local function find_client_by_resource(username, resource) |
