Another fix for s2s (well, let's say it was more for modules)

Sat, 01 Nov 2008 21:10:19 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 01 Nov 2008 21:10:19 +0000
changeset 192
71c389c6fc2e
parent 191
e64c8a44060f
child 193
13ac34255c37

Another fix for s2s (well, let's say it was more for modules)

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Sat Nov 01 21:07:14 2008 +0000
+++ b/core/stanza_router.lua	Sat Nov 01 21:10:19 2008 +0000
@@ -60,7 +60,7 @@
 		core_handle_stanza(origin, stanza);
 	elseif stanza.name == "iq" and not select(3, jid_split(to)) then
 		core_handle_stanza(origin, stanza);
-	elseif stanza.attr.xmlns ~= "jabber:client" and stanza.attr.xmlns ~= "jabber:server" then
+	elseif stanza.attr.xmlns and stanza.attr.xmlns ~= "jabber:client" and stanza.attr.xmlns ~= "jabber:server" then
 		modules_handle_stanza(origin, stanza);
 	elseif origin.type == "c2s" or origin.type == "s2sin" then
 		core_route_stanza(origin, stanza);

mercurial