Software /
code /
prosody
Comparison
plugins/mod_disco.lua @ 8201:a0ad62a269df
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 28 Aug 2017 21:05:12 +0200 |
parent | 8188:8c524b7c9017 |
child | 8834:b0093d3b2d04 |
comparison
equal
deleted
inserted
replaced
8185:e89320b8a789 | 8201:a0ad62a269df |
---|---|
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 |