diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-09-06 01:31:18 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-09-06 01:31:18 +0500 |
commit | be1b9e55c0d03d04c69895355b974447b5fa21ab (patch) | |
tree | 2ffb45ef75f082f55037873c1af83da6372a7cac /core | |
parent | 8dca0cdd3edcc740bdacfa2a5a7e2b8662c58f42 (diff) | |
download | prosody-be1b9e55c0d03d04c69895355b974447b5fa21ab.tar.gz prosody-be1b9e55c0d03d04c69895355b974447b5fa21ab.zip |
modulemanager: Fixed: Internally generated stanzas could be missing namespaces, which causes tracebacks in logging (e.g., auto-generated offline presence)
Diffstat (limited to 'core')
-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 0c9ef581..250551ed 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -235,7 +235,7 @@ function reload(host, name, ...) end function handle_stanza(host, origin, stanza) - local name, xmlns, origin_type = stanza.name, stanza.attr.xmlns, origin.type; + local name, xmlns, origin_type = stanza.name, stanza.attr.xmlns or "jabber:client", origin.type; if name == "iq" and xmlns == "jabber:client" then if stanza.attr.type == "get" or stanza.attr.type == "set" then xmlns = stanza.tags[1].attr.xmlns or "jabber:client"; |