diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-14 17:41:21 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-14 17:41:21 +0500 |
commit | 45df0615ef891707bbb139af50470ed242fecd51 (patch) | |
tree | 7e321bbe863d976fe3ae41dc381546ea18dd163d /util | |
parent | 1bd4a36326f6dd9965a95b617cc83ddd7be69b83 (diff) | |
download | prosody-45df0615ef891707bbb139af50470ed242fecd51.tar.gz prosody-45df0615ef891707bbb139af50470ed242fecd51.zip |
util.muc: Relaxed top-level routing checks to allow node-less rooms, and removed redundant checks
Diffstat (limited to 'util')
-rw-r--r-- | util/muc.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/util/muc.lua b/util/muc.lua index 8f6963f8..2bb1311a 100644 --- a/util/muc.lua +++ b/util/muc.lua @@ -338,14 +338,10 @@ end local function room_handle_stanza(self, origin, stanza) local to_node, to_host, to_resource = jid_split(stanza.attr.to); - if to_resource and not to_node then - if type == "error" or type == "result" then return; end - origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- host/resource - elseif to_resource then + if to_resource then room_handle_to_occupant(self, origin, stanza); - elseif to_node then - room_handle_to_room(self, origin, stanza) - else -- to the main muc domain + else + room_handle_to_room(self, origin, stanza); end end |