Another fix for s2s (well, let's say it was more for modules)
authorMatthew Wild <mwild1@gmail.com>
Sat, 1 Nov 2008 21:10:19 +0000 (21:10 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sat, 1 Nov 2008 21:10:19 +0000 (21:10 +0000)
core/stanza_router.lua

index fc8cfa92aff4e17170045221848802ff8bfbdf10..01a4696185c038117e86a39c8dd63295a28d2e27 100644 (file)
@@ -60,7 +60,7 @@ function core_process_stanza(origin, stanza)
                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);