Software / code / prosody
Comparison
plugins/mod_disco.lua @ 7787:200f1f6306a7
mod_disco: Update to account for new intermediate session type (from 9f70d35a1602)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 15 Dec 2016 07:03:52 +0100 |
| parent | 5776:bd0ff8ae98a8 |
| child | 7977:01d6298de991 |
comparison
equal
deleted
inserted
replaced
| 7785:cdffbda59b03 | 7787:200f1f6306a7 |
|---|---|
| 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" then | 151 if event.origin.type == "c2s" or event.origin.type == "c2s_unauthed" 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 |