# HG changeset patch # User Goffi # Date 1438361187 -7200 # Node ID e7b5ab44339c8d6fa58373b5d9eb65f5006841ae # Parent 0d78bb31348e054578c4738743c8cb7f76b723af mod_delegation: fixed bad calling of on_auth for components diff -r 0d78bb31348e -r e7b5ab44339c mod_delegation/mod_delegation.lua --- a/mod_delegation/mod_delegation.lua Fri Jul 31 18:46:06 2015 +0200 +++ b/mod_delegation/mod_delegation.lua Fri Jul 31 18:46:27 2015 +0200 @@ -143,7 +143,9 @@ end end -connected_cb:add(on_component_connected) +if module:get_host_type() ~= "component" then + connected_cb:add(on_component_connected) +end module:hook('component-authenticated', on_component_auth) module:hook('presence/initial', on_presence)