Mercurial > prosody-modules
comparison mod_delegation/mod_delegation.lua @ 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 | 7bfc23b2c038 |
children | d7c1daaf2dea |
comparison
equal
deleted
inserted
replaced
1775:0d78bb31348e | 1776:e7b5ab44339c |
---|---|
141 for callback in connected_cb:items() do | 141 for callback in connected_cb:items() do |
142 callback(event) | 142 callback(event) |
143 end | 143 end |
144 end | 144 end |
145 | 145 |
146 connected_cb:add(on_component_connected) | 146 if module:get_host_type() ~= "component" then |
147 connected_cb:add(on_component_connected) | |
148 end | |
147 module:hook('component-authenticated', on_component_auth) | 149 module:hook('component-authenticated', on_component_auth) |
148 module:hook('presence/initial', on_presence) | 150 module:hook('presence/initial', on_presence) |
149 | 151 |
150 | 152 |
151 --> delegated namespaces hook <-- | 153 --> delegated namespaces hook <-- |