diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-30 19:40:16 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-30 19:40:16 +0100 |
commit | ad6a65efa1506e70e460430e9636573eed9f2abc (patch) | |
tree | 4f40f73984a355395ba8151c98fb3f05f7e1e3be /core/modulemanager.lua | |
parent | 67a0c4e8db5af279127f5ee15a66b5ce0ea0d194 (diff) | |
download | prosody-ad6a65efa1506e70e460430e9636573eed9f2abc.tar.gz prosody-ad6a65efa1506e70e460430e9636573eed9f2abc.zip |
stanza_router, s2smanager, modulemanager: Fix for handling of the default namespace on stanzas, causing sometimes jabber:client to be sent over s2s, and accepted
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 4d4468a7..3ad02b30 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -270,7 +270,7 @@ function handle_stanza(host, origin, stanza) (handlers[1])(origin, stanza); return true; else - if stanza.attr.xmlns == "jabber:client" then + if stanza.attr.xmlns == nil then log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); |