ejabberd - Comments for "MUC Room Owner" https://www.ejabberd.im/node/4234 en Your simple chaneg works for me https://www.ejabberd.im/node/4234#comment-56572 <div class="quote-msg"> <div class="quote-author"><em>jishy</em> wrote:</div> <p>Didn't really work. It ends up failing to create the room and cannot chat... Hmm</p></div> <p>The change that you mentioned looks correct to me:</p> <pre> --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -113,7 +113,7 @@ start_link(Host, ServerHost, Access, Room, HistorySize, RoomShaper, Opts) -&gt; init([Host, ServerHost, Access, Room, HistorySize, RoomShaper, Creator, _Nick, DefRoomOpts]) -&gt; process_flag(trap_exit, true), Shaper = shaper:new(RoomShaper), - State = set_affiliation(Creator, owner, + State = set_affiliation(Creator, member, #state{host = Host, server_host = ServerHost, access = Access, </pre><p> A normal user can join a room, and it's created correctly, he can chat, but he can't configure it, etc.</p> <pre> =INFO REPORT==== 30-Aug-2010::23:51:04 === I(&lt;0.512.0&gt;:mod_muc_room:126) : Created MUC room asdasd@conference.localhost by badlop3@localhost/work </pre><p> If you want all the new rooms to be persistent, configure in ejabberd.cfg</p> <pre> {modules, [ ... {mod_muc, [ {default_room_options, [{persistent, true}]}, ... </pre> Mon, 30 Aug 2010 21:57:15 +0000 mfoss comment 56572 at https://www.ejabberd.im Didn't really work. It ends https://www.ejabberd.im/node/4234#comment-56564 <p>Didn't really work. It ends up failing to create the room and cannot chat... Hmm</p> Sat, 28 Aug 2010 11:46:28 +0000 jishy comment 56564 at https://www.ejabberd.im Worked it out... https://www.ejabberd.im/node/4234#comment-56558 <p>Found a fix finally...<br /> Line 116 of mod_muc_room.erl. Changed 'owner' to member.<br /> <code>State = set_affiliation(Creator, member,</code><br /> It still respects admins as moderators as well which is awesome.</p> Thu, 26 Aug 2010 17:42:07 +0000 jishy comment 56558 at https://www.ejabberd.im