ejabberd - Comments for "programatically controlling MUCs" https://www.ejabberd.im/node/4864 en barhorn https://www.ejabberd.im/node/4864#comment-57656 <div class="quote-msg"> <div class="quote-author"><em>barhorn</em> wrote:</div> <p>set_room_affiliation allows me to make someone a member, how do I remove the affiliation? I didn't see a "remove" or "delete" _room_affiliation. I suppose I can change the affiliation type to "none" or something similar, but is there a better way?</p></div> <p>You already found the best way:</p> <pre> %% If the affiliation is 'none', the action is to remove, %% In any other case the action will be to create the affiliation. </pre> Wed, 27 Jul 2011 14:36:26 +0000 mfoss comment 57656 at https://www.ejabberd.im Sorry for the difficulty https://www.ejabberd.im/node/4864#comment-57647 <p>Sorry for the difficulty reading the post. I think I was just excited to get close to the last few phases of my project. I've implemented everything you've suggested, and for the most part it is working great! </p> <p>One last thing: set_room_affiliation allows me to make someone a member, how do I remove the affiliation? I didn't see a "remove" or "delete" _room_affiliation. I suppose I can change the affiliation type to "none" or something similar, but is there a better way?</p> <p>Thanks for all the support!</p> Mon, 25 Jul 2011 20:43:32 +0000 barhorn comment 57647 at https://www.ejabberd.im Your questions are all mixed, https://www.ejabberd.im/node/4864#comment-57642 <p>Your questions are all mixed, repeated, and it took me several reads to organize your post into something that can be replied. Please be more organized next time.</p> <div class="quote-msg"> <div class="quote-author"><em>barhorn</em> wrote:</div> <p>I have ejabberd 1.1.8 installed with the ejabberd_xmlrpc, mod_admin_extra, and mod_muc_admin modules installed. </p></div> <p>I guess you mean 2.1.8.</p> <div class="quote-msg"> <div class="quote-author"><em>barhorn</em> wrote:</div> <p>I'd like to be able to create several MUCs and allow all users, and only those users (and maybe the admin, if possible), in a shared roster group participate in their respective MUC. So, every shared roster would have ~8 users in it, they should all have access to the one MUC created specifically for them, and the existence of the MUC should not be public (so that they aren't displayed for all users in some clients when doing a service discovery type of thing). </p></div> <p>Ok, that's the description of your requirements.</p> <div class="quote-msg"> <div class="quote-author"><em>barhorn</em> wrote:</div> <p>I see that there's an "change_room_option", but I'm not clear on how to get the list of options that can be changed.<br /> Are the "default_room_options" listed in the docs the options used for "change_room_option"? Are there other options that are available? </p></div> <p>Right, those are the room options that can be changed.</p> <div class="quote-msg"> <div class="quote-author"><em>barhorn</em> wrote:</div> <p>I'm assuming that I would use change_room_option to set the room options I've listed above. </p></div> <p>Yes, you can change any option of any room anytime by running ejabberd commands. Another solution is to edit ejabberd.cfg and describe in default_room_options what configuration do you want the new rooms to have.</p> <div class="quote-msg"> <div class="quote-author"><em>barhorn</em> wrote:</div> <p>how to hide the existence of the room from all other users.<br /> I also see "persistent" and "public" options in the docs, and I'm assuming that I would want to set these to true/false respectively. I'll probably use the "title" option as well to set the name of the room to the game name (which may contain spaces and other UTF8 characters) </p></div> <p>For you requirements, I think you want to set: persistent true, public false, members_only true.</p> <div class="quote-msg"> <div class="quote-author"><em>barhorn</em> wrote:</div> <p>I'm not clear on how to add the members of the room (I don't want to have to have the members of the room join themselves, if possible),<br /> I see in the documentation that there is a members_only option, but how do I assign who the members are?<br /> How about designating members of the room? </p></div> <p>"member" is a type of affiliation, so try this:<br /> ejabberdctl set_room_affiliation testroom conference.localhost <noindex><a href="mailto:user123@example.org" rel="nofollow" >user123@example.org</a></noindex> member</p> Sun, 24 Jul 2011 14:39:35 +0000 mfoss comment 57642 at https://www.ejabberd.im