Mercurial > prosody-hg
diff plugins/mod_c2s.lua @ 14125:863da67a4b51 13.0
mod_c2s: Fire a c2s-connected event
We already fire events for most of the other connection callbacks, this one
was missing, but is useful.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 16 Apr 2026 16:11:44 +0100 |
| parents | 8a4417d32b0f |
| children | 1e005ba71f0d |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Fri Apr 17 12:07:12 2026 +0200 +++ b/plugins/mod_c2s.lua Thu Apr 16 16:11:44 2026 +0100 @@ -409,6 +409,8 @@ session.dispatch_stanza = stream_callbacks.handlestanza; sessions[conn] = session; + + module:fire_event("c2s-connected", { conn = conn, session = session }); end function listener.onincoming(conn, data)
