[ejabberd] muc/sub-ejabberd 16.12-beta1

jacob jabber ejabberd.jacob at gmail.com
Sat Dec 10 07:30:25 MSK 2016


thanks Mickaël.
I means in muc all of members can add new members using invite message
<message to='g27 at conference.example.com'>
  <x xmlns='http://jabber.org/protocol/muc#user'>
    <invite to='user2 at soroush.ir'/>
  </x>
</message>

but

*<iq from='user1 at example.com <user1 at example.com>'*
    to='coven at onference.example.com'
    type='set'
    id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'>
  <subscribe xmlns='urn:xmpp:mucsub:0'
             nick='mynick'>
    <event node='urn:xmpp:mucsub:nodes:messages' />
    <event node='urn:xmpp:mucsub:nodes:affiliations' />
    <event node='urn:xmpp:mucsub:nodes:subject' />
    <event node='urn:xmpp:mucsub:nodes:config' />
  </subscribe>
</iq>
how to change this iq query to add another subscriber to group when
member_only is true?
using this iq query I can add myself to muc as subscriber.
thanks in advance

On Thu, Dec 8, 2016 at 12:30 PM, <ejabberd-request at jabber.ru> wrote:

> Send ejabberd mailing list submissions to
>         ejabberd at jabber.ru
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.jabber.ru/mailman/listinfo/ejabberd
> or, via email, send a message with subject or body 'help' to
>         ejabberd-request at jabber.ru
>
> You can reach the person managing the list at
>         ejabberd-owner at jabber.ru
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ejabberd digest..."
>
>
> Today's Topics:
>
>    1. muc/sub-ejabberd 16.12-beta1 (jacob jabber)
>    2. Re: muc/sub-ejabberd 16.12-beta1 (Micka?l R?mond)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 7 Dec 2016 16:56:32 +0330
> From: jacob jabber <ejabberd.jacob at gmail.com>
> To: ejabberd at jabber.ru
> Subject: [ejabberd] muc/sub-ejabberd 16.12-beta1
> Message-ID:
>         <CAOY1yjDfsjJ_hcPPLV99nr7BhwkSSHA3H9Kr_
> vkdjV7ihDR6Lw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> hi,
> in muc/sub,  can I(user1) add user2 as subscriber?
> and limit users to can't add self as subscriber?
> thanks in advance.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.jabber.ru/pipermail/ejabberd/
> attachments/20161207/42d7418c/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 7 Dec 2016 19:45:24 +0100
> From: Micka?l R?mond <mremond at process-one.net>
> To: "<ejabberd at jabber.ru>" <ejabberd at jabber.ru>
> Subject: Re: [ejabberd] muc/sub-ejabberd 16.12-beta1
> Message-ID: <B6F3E627-118F-4334-A48F-D34BE168756C at process-one.net>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
>
> > On 7 Dec 2016, at 14:26, jacob jabber <ejabberd.jacob at gmail.com> wrote:
> >
> > hi,
> > in muc/sub,  can I(user1) add user2 as subscriber?
> > and limit users to can't add self as subscriber?
>
> This is the same as joining a room. If subscription is allowed on a given
> room (there is a room configuration option for that), then if a user can
> join he can subscribe to the room (and read message archive).
> You could for example make room member only and thus limit who can join
> (and subscribe).
>
> --
> Micka?l R?mond
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.jabber.ru/pipermail/ejabberd/
> attachments/20161207/ebde860c/attachment-0001.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
>
> ------------------------------
>
> End of ejabberd Digest, Vol 161, Issue 5
> ****************************************
>



-- 

*Best Regards*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20161210/e09f318e/attachment.html>


More information about the ejabberd mailing list