Software / code / prosody
Comparison
plugins/mod_proxy65.lua @ 3676:13a1d90b4e1c
mod_proxy65: Give the 'iq/host' stanza handler a negative priority, to allow mod_iq to process the events first.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Thu, 02 Dec 2010 16:17:44 +0500 |
| parent | 3607:e1259b6d7560 |
| child | 3688:f7de887ea0be |
comparison
equal
deleted
inserted
replaced
| 3675:cd3a1ae596b4 | 3676:13a1d90b4e1c |
|---|---|
| 247 else | 247 else |
| 248 module:log("error", "activation failed: sid: %s, initiator: %s, target: %s", tostring(sid), tostring(from), tostring(to)); | 248 module:log("error", "activation failed: sid: %s, initiator: %s, target: %s", tostring(sid), tostring(from), tostring(to)); |
| 249 end | 249 end |
| 250 end | 250 end |
| 251 end | 251 end |
| 252 module:hook("iq/host", handle_to_domain); | 252 module:hook("iq/host", handle_to_domain, -1); |
| 253 | 253 |
| 254 if not connlisteners.register(module.host .. ':proxy65', connlistener) then | 254 if not connlisteners.register(module.host .. ':proxy65', connlistener) then |
| 255 module:log("error", "mod_proxy65: Could not establish a connection listener. Check your configuration please."); | 255 module:log("error", "mod_proxy65: Could not establish a connection listener. Check your configuration please."); |
| 256 module:log("error", "Possibly two proxy65 components are configured to share the same port."); | 256 module:log("error", "Possibly two proxy65 components are configured to share the same port."); |
| 257 end | 257 end |