Mercurial > prosody-modules
comparison mod_compat_bind/mod_compat_bind.lua @ 2322:73fbfd1e820b
mod_compat_bind: Use non-deprecated way to access core_process_stanza (thanks Roi)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 01 Oct 2016 17:44:30 +0200 |
parents | f25b6a9f97bb |
children |
comparison
equal
deleted
inserted
replaced
2321:d9c19ee16f2e | 2322:73fbfd1e820b |
---|---|
6 local st = require "util.stanza"; | 6 local st = require "util.stanza"; |
7 | 7 |
8 module:hook("iq/host/urn:ietf:params:xml:ns:xmpp-bind:bind", function(event) | 8 module:hook("iq/host/urn:ietf:params:xml:ns:xmpp-bind:bind", function(event) |
9 local fixed_stanza = st.clone(event.stanza); | 9 local fixed_stanza = st.clone(event.stanza); |
10 fixed_stanza.attr.to = nil; | 10 fixed_stanza.attr.to = nil; |
11 core_process_stanza(event.origin, fixed_stanza); | 11 prosody.core_process_stanza(event.origin, fixed_stanza); |
12 return true; | 12 return true; |
13 end); | 13 end); |