Diff

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
line wrap: on
line diff
--- a/plugins/mod_dialback.lua	Tue Dec 05 12:26:57 2017 +0100
+++ b/plugins/mod_dialback.lua	Tue Dec 05 12:30:13 2017 +0100
@@ -190,7 +190,7 @@
 	end
 end);
 
-module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
+module:hook_tag(xmlns_stream, "features", function (origin, stanza) -- luacheck: ignore 212/stanza
 	if not origin.external_auth or origin.external_auth == "failed" then
 		module:log("debug", "Initiating dialback...");
 		initiate_dialback(origin);