Comparison

plugins/mod_dialback.lua @ 8458:e9c7ac97cb52

mod_dialback: Use non-deprecated API
author Kim Alvefur <zash@zash.se>
date Tue, 05 Dec 2017 12:30:13 +0100
parent 8457:20c5ace92b19
child 8518:0de0018bdf91
comparison
equal deleted inserted replaced
8457:20c5ace92b19 8458:e9c7ac97cb52
188 end 188 end
189 return true; 189 return true;
190 end 190 end
191 end); 191 end);
192 192
193 module:hook_stanza(xmlns_stream, "features", function (origin, stanza) 193 module:hook_tag(xmlns_stream, "features", function (origin, stanza) -- luacheck: ignore 212/stanza
194 if not origin.external_auth or origin.external_auth == "failed" then 194 if not origin.external_auth or origin.external_auth == "failed" then
195 module:log("debug", "Initiating dialback..."); 195 module:log("debug", "Initiating dialback...");
196 initiate_dialback(origin); 196 initiate_dialback(origin);
197 return true; 197 return true;
198 end 198 end