Software /
code /
prosody
Comparison
plugins/mod_component.lua @ 5952:31b800964dfb
mod_component: Decrease priority of component auth hook
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 18 Dec 2013 18:34:22 +0100 |
parent | 5728:2ecf400b194a |
child | 5953:1c08d6cca552 |
comparison
equal
deleted
inserted
replaced
5949:a9abbdeddbf3 | 5952:31b800964dfb |
---|---|
84 module:log("info", "External component successfully authenticated"); | 84 module:log("info", "External component successfully authenticated"); |
85 session.send(st.stanza("handshake")); | 85 session.send(st.stanza("handshake")); |
86 | 86 |
87 return true; | 87 return true; |
88 end | 88 end |
89 module:hook("stanza/jabber:component:accept:handshake", handle_component_auth); | 89 module:hook("stanza/jabber:component:accept:handshake", handle_component_auth, -1); |
90 | 90 |
91 -- Handle stanzas addressed to this component | 91 -- Handle stanzas addressed to this component |
92 local function handle_stanza(event) | 92 local function handle_stanza(event) |
93 local stanza = event.stanza; | 93 local stanza = event.stanza; |
94 if send then | 94 if send then |