# HG changeset patch # User Waqas Hussain # Date 1244983281 -18000 # Node ID 5f169bd454ca370b0f3a317c738d43978eea9d8c # Parent aad3ebce4fcc8d089838dbd0de843a58189b059c util.muc: Relaxed top-level routing checks to allow node-less rooms, and removed redundant checks diff -r aad3ebce4fcc -r 5f169bd454ca util/muc.lua --- a/util/muc.lua Sun Jun 14 17:33:22 2009 +0500 +++ b/util/muc.lua Sun Jun 14 17:41:21 2009 +0500 @@ -338,14 +338,10 @@ 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