Mercurial > prosody-modules
comparison mod_privilege/mod_privilege.lua @ 1777:c353acd1d366
Merge with Goffi
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 10 Aug 2015 21:13:31 +0200 |
| parents | 0d78bb31348e |
| children | f719d5e6c627 |
comparison
equal
deleted
inserted
replaced
| 1773:fb2b9a2e2316 | 1777:c353acd1d366 |
|---|---|
| 174 for callback in connected_cb:items() do | 174 for callback in connected_cb:items() do |
| 175 callback(event) | 175 callback(event) |
| 176 end | 176 end |
| 177 end | 177 end |
| 178 | 178 |
| 179 connected_cb:add(on_auth) | 179 if module:get_host_type() ~= "component" then |
| 180 connected_cb:add(on_auth) | |
| 181 end | |
| 180 module:hook('authentication-success', on_auth) | 182 module:hook('authentication-success', on_auth) |
| 181 module:hook('component-authenticated', on_component_auth) | 183 module:hook('component-authenticated', on_component_auth) |
| 182 module:hook('presence/initial', on_presence) | 184 module:hook('presence/initial', on_presence) |
| 183 | 185 |
| 184 | 186 |
