mod_component: Decrease priority of component auth hook
authorKim Alvefur <zash@zash.se>
Wed, 18 Dec 2013 17:34:22 +0000 (18:34 +0100)
committerKim Alvefur <zash@zash.se>
Wed, 18 Dec 2013 17:34:22 +0000 (18:34 +0100)
plugins/mod_component.lua

index a5767c9a33039ed0653266d2714630dcbbd93041..b6e111d5a9f8126e066f28bcfaf403ff1f001aed 100644 (file)
@@ -86,7 +86,7 @@ function module.add_host(module)
        
                return true;
        end
-       module:hook("stanza/jabber:component:accept:handshake", handle_component_auth);
+       module:hook("stanza/jabber:component:accept:handshake", handle_component_auth, -1);
 
        -- Handle stanzas addressed to this component
        local function handle_stanza(event)