Diff

core/stanza_router.lua @ 6663:d3023dd07cb6

portmanager, s2smanager, sessionmanager, stanza_router, storagemanager, usermanager, util.xml: Add luacheck annotations
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 May 2015 19:20:07 +0100
parent 6559:0ef7ca5276a1
child 7448:34678ce8a6ac
line wrap: on
line diff
--- a/core/stanza_router.lua	Wed May 06 19:17:59 2015 +0100
+++ b/core/stanza_router.lua	Wed May 06 19:20:07 2015 +0100
@@ -30,7 +30,7 @@
 deprecated_warning"core_route_stanza";
 
 local valid_stanzas = { message = true, presence = true, iq = true };
-local function handle_unhandled_stanza(host, origin, stanza)
+local function handle_unhandled_stanza(host, origin, stanza) --luacheck: ignore 212/host
 	local name, xmlns, origin_type = stanza.name, stanza.attr.xmlns or "jabber:client", origin.type;
 	if xmlns == "jabber:client" and valid_stanzas[name] then
 		-- A normal stanza
@@ -221,6 +221,8 @@
 		end
 	end
 end
+
+--luacheck: ignore 122/prosody
 prosody.core_process_stanza = core_process_stanza;
 prosody.core_post_stanza = core_post_stanza;
 prosody.core_route_stanza = core_route_stanza;