Software /
code /
prosody
Comparison
core/modulemanager.lua @ 1733:d55ee6c66910
Merge with 0.5
author | matthew@silver |
---|---|
date | Sat, 05 Sep 2009 23:01:06 +0100 |
parent | 1709:51cf905414a2 |
parent | 1730:f4170bc82969 |
child | 1853:5da0e3b1f847 |
comparison
equal
deleted
inserted
replaced
1729:2876a0ecceab | 1733:d55ee6c66910 |
---|---|
226 end | 226 end |
227 return ok, err; | 227 return ok, err; |
228 end | 228 end |
229 | 229 |
230 function handle_stanza(host, origin, stanza) | 230 function handle_stanza(host, origin, stanza) |
231 local name, xmlns, origin_type = stanza.name, stanza.attr.xmlns, origin.type; | 231 local name, xmlns, origin_type = stanza.name, stanza.attr.xmlns or "jabber:client", origin.type; |
232 if name == "iq" and xmlns == "jabber:client" then | 232 if name == "iq" and xmlns == "jabber:client" then |
233 if stanza.attr.type == "get" or stanza.attr.type == "set" then | 233 if stanza.attr.type == "get" or stanza.attr.type == "set" then |
234 xmlns = stanza.tags[1].attr.xmlns or "jabber:client"; | 234 xmlns = stanza.tags[1].attr.xmlns or "jabber:client"; |
235 log("debug", "Stanza of type %s from %s has xmlns: %s", name, origin_type, xmlns); | 235 log("debug", "Stanza of type %s from %s has xmlns: %s", name, origin_type, xmlns); |
236 else | 236 else |