Software / code / prosody
Comparison
core/modulemanager.lua @ 1730:f4170bc82969
modulemanager: Fixed: Internally generated stanzas could be missing namespaces, which causes tracebacks in logging (e.g., auto-generated offline presence)
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Sun, 06 Sep 2009 01:31:18 +0500 |
| parent | 1523:841d61be198f |
| child | 1733:d55ee6c66910 |
| child | 1852:f9b58f37bc14 |
comparison
equal
deleted
inserted
replaced
| 1726:85518cb866dd | 1730:f4170bc82969 |
|---|---|
| 233 end | 233 end |
| 234 return ok, err; | 234 return ok, err; |
| 235 end | 235 end |
| 236 | 236 |
| 237 function handle_stanza(host, origin, stanza) | 237 function handle_stanza(host, origin, stanza) |
| 238 local name, xmlns, origin_type = stanza.name, stanza.attr.xmlns, origin.type; | 238 local name, xmlns, origin_type = stanza.name, stanza.attr.xmlns or "jabber:client", origin.type; |
| 239 if name == "iq" and xmlns == "jabber:client" then | 239 if name == "iq" and xmlns == "jabber:client" then |
| 240 if stanza.attr.type == "get" or stanza.attr.type == "set" then | 240 if stanza.attr.type == "get" or stanza.attr.type == "set" then |
| 241 xmlns = stanza.tags[1].attr.xmlns or "jabber:client"; | 241 xmlns = stanza.tags[1].attr.xmlns or "jabber:client"; |
| 242 log("debug", "Stanza of type %s from %s has xmlns: %s", name, origin_type, xmlns); | 242 log("debug", "Stanza of type %s from %s has xmlns: %s", name, origin_type, xmlns); |
| 243 else | 243 else |