Mercurial > prosody-hg
comparison plugins/mod_disco.lua @ 8188:8c524b7c9017
mod_disco: Advertise in stream-features after auth (probably what was meant in 200f1f6306a7) (fixes #957)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 27 Jul 2017 14:10:18 +0200 |
| parents | 745e0a783055 |
| children | b0093d3b2d04 |
comparison
equal
deleted
inserted
replaced
| 8187:4d83876aac3e | 8188:8c524b7c9017 |
|---|---|
| 146 return true; | 146 return true; |
| 147 end); | 147 end); |
| 148 | 148 |
| 149 -- Handle caps stream feature | 149 -- Handle caps stream feature |
| 150 module:hook("stream-features", function (event) | 150 module:hook("stream-features", function (event) |
| 151 if event.origin.type == "c2s" or event.origin.type == "c2s_unauthed" then | 151 if event.origin.type == "c2s" or event.origin.type == "c2s_unbound" then |
| 152 event.features:add_child(get_server_caps_feature()); | 152 event.features:add_child(get_server_caps_feature()); |
| 153 end | 153 end |
| 154 end); | 154 end); |
| 155 | 155 |
| 156 -- Handle disco requests to user accounts | 156 -- Handle disco requests to user accounts |
