Software / code / prosody-modules
Comparison
mod_client_management/mod_client_management.lua @ 5776: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 |
| parent | 5717:8afa0fb8a73e |
| child | 5779:e199f33f7a2e |
comparison
equal
deleted
inserted
replaced
| 5775:c27eaa7117d6 | 5776: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) |