Software /
code /
prosody
Comparison
core/stanza_router.lua @ 1445:810037988642
stanza_router: Removed unnecessary xmlns check
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 29 Jun 2009 13:15:46 +0500 |
parent | 1444:19598161ae22 |
child | 1466:95f8024c77fc |
comparison
equal
deleted
inserted
replaced
1444:19598161ae22 | 1445:810037988642 |
---|---|
149 if h.type == "component" then | 149 if h.type == "component" then |
150 component_handle_stanza(origin, stanza); | 150 component_handle_stanza(origin, stanza); |
151 return; | 151 return; |
152 end | 152 end |
153 if not modules_handle_stanza(h.host, origin, stanza) then | 153 if not modules_handle_stanza(h.host, origin, stanza) then |
154 if stanza.attr.xmlns == "jabber:client" and stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then | 154 if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then |
155 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); | 155 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); |
156 end | 156 end |
157 end | 157 end |
158 else | 158 else |
159 core_route_stanza(origin, stanza); | 159 core_route_stanza(origin, stanza); |