# HG changeset patch # User daurnimator # Date 1398717081 14400 # Node ID ee996e679f1532f02a87c4568c63b165a56df28b # Parent d433db49e3536890269bfc4518317ce6f4d1d669 plugins/muc/mod_muc: No need to treat the host room specially diff -r d433db49e353 -r ee996e679f15 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Mon Apr 28 16:33:54 2014 -0400 +++ b/plugins/muc/mod_muc.lua Mon Apr 28 16:31:21 2014 -0400 @@ -12,7 +12,6 @@ error("MUC should be loaded as a component, please see http://prosody.im/doc/components", 0); end -local muc_host = module:get_host(); local restrict_room_creation = module:get_option("restrict_room_creation"); if restrict_room_creation then if restrict_room_creation == true then @@ -120,10 +119,6 @@ end if persistent_errors then persistent_rooms_storage:set(nil, persistent_rooms); end -local host_room = muc_new_room(muc_host); -host_room.save = room_save; -rooms[muc_host] = host_room; - module:hook("host-disco-items", function(event) local reply = event.reply; module:log("debug", "host-disco-items called"); @@ -227,7 +222,6 @@ for roomjid, room in pairs(rooms) do room:clear(x); end - host_room:clear(x); end end module.unload = shutdown_component;