aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-06 01:31:18 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-06 01:31:18 +0500
commitbe1b9e55c0d03d04c69895355b974447b5fa21ab (patch)
tree2ffb45ef75f082f55037873c1af83da6372a7cac /core/modulemanager.lua
parent8dca0cdd3edcc740bdacfa2a5a7e2b8662c58f42 (diff)
downloadprosody-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/modulemanager.lua')
-rw-r--r--core/modulemanager.lua2
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";