Mercurial > prosody-modules
changeset 1776:e7b5ab44339c
mod_delegation: fixed bad calling of on_auth for components
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 31 Jul 2015 18:46:27 +0200 |
parents | 0d78bb31348e |
children | c353acd1d366 |
files | mod_delegation/mod_delegation.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)