# HG changeset patch # User Waqas Hussain # Date 1252182678 -18000 # Node ID f4170bc829697d086e5e9c3307dca745a7e932bd # Parent 85518cb866ddc1cc27b5f83189bf6957f5479407 modulemanager: Fixed: Internally generated stanzas could be missing namespaces, which causes tracebacks in logging (e.g., auto-generated offline presence) diff -r 85518cb866dd -r f4170bc82969 core/modulemanager.lua --- a/core/modulemanager.lua Thu Aug 20 16:30:03 2009 +0100 +++ b/core/modulemanager.lua Sun Sep 06 01:31:18 2009 +0500 @@ -235,7 +235,7 @@ 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";