ejabberd - Comments for "MUC permissions" https://www.ejabberd.im/node/4406 en maxi wrote: automatically set https://www.ejabberd.im/node/4406#comment-56826 <div class="quote-msg"> <div class="quote-author"><em>maxi</em> wrote:</div> <p>automatically set Anonymous users as MUC Visitors and Non-Anonymous as MUC Participants? Or I have to re-factor mod_muc? Thanks!</p></div> <p>Here is a tricky method:<br /> 1. Ensure that non-anon users have JIDs in server "server1".<br /> 2. Ensure that anon users have JIDs in another server, for example "server2", or "anon.server1".<br /> 3. Configure the MUC room, or set as default room options in ejabberd.cfg this:<br /> 3.1. disable: members by default<br /> 3.2. disable: members only<br /> 3.3. enable: moderated<br /> 4. In the MUC room, add as member the JID: "server1"</p> <p>This way, a non-anon user of server1 joins the room, is member, and gets voice. An anon user of other server is not member and doesn't have voice.</p> <p>The only problem is automatizing step 4: you need to add that member to all rooms. For this you can install mod_muc_admin from ejabberd-modules SVN, and run the set_affiliation command.</p> Tue, 23 Nov 2010 12:37:59 +0000 mfoss comment 56826 at https://www.ejabberd.im