diff options
author | Kim Alvefur <zash@zash.se> | 2017-12-13 17:31:31 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-12-13 17:31:31 +0100 |
commit | 330a365ca80ee0a11a1b7a731e0801cff54e2704 (patch) | |
tree | 701ffc8b3341c6d194fb308f8252f1620b399b21 /plugins/mod_bosh.lua | |
parent | a8c7b08aac0c01b4eb34d7afa4e1a026d6d19813 (diff) | |
download | prosody-330a365ca80ee0a11a1b7a731e0801cff54e2704.tar.gz prosody-330a365ca80ee0a11a1b7a731e0801cff54e2704.zip |
mod_bosh: Use module API to fire events
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r-- | plugins/mod_bosh.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 2cac7385..2525d975 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -326,7 +326,7 @@ function stream_callbacks.streamopened(context, attr) session.log("debug", "BOSH session created for request from %s", session.ip); log("info", "New BOSH session, assigned it sid '%s'", sid); - hosts[session.host].events.fire_event("bosh-session", { session = session, request = request }); + module:fire_event("bosh-session", { session = session, request = request }); -- Send creation response local creating_session = true; @@ -427,7 +427,7 @@ function stream_callbacks.streamopened(context, attr) if session.notopen then local features = st.stanza("stream:features"); - hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); + module:fire_event("stream-features", { origin = session, features = features }); session.send(features); session.notopen = nil; end |