[jdev] MUC: setting participant to visitor does not work
Heiner Wolf
wolf at bluehands.de
Wed Jun 23 13:23:17 CDT 2004
I found the difference that makes things work:
There <query/> must not have CDATA.
Works:
<iq type="set" to="llunatest2 at atlas.jabber.org" id="t1">
<query xmlns="http://jabber.org/protocol/muc#admin"><item nick="Susi" role="visitor"/></query>
</iq>
Doesn't:
<iq type="set" to="llunatest2 at atlas.jabber.org" id="t1">
<query xmlns="http://jabber.org/protocol/muc#admin"><item nick="Susi" role="visitor"/> </query>
</iq>
My examples had beautified XML with line feeds. The line feeds broke it.
hw
--
Dr. Klaus H. Wolf
bluehands GmbH & Co.mmunication KG
http://www.bluehands.de/people/hw
+49 (0721) 16108 75
--
LLuna: Jabber enabled virtual presence on the web / http://www.lluna.de/
Galactic developments: Open source future history / http://www.galactic-developments.com/
> -----Original Message-----
> From: jdev-bounces at jabber.org
> [mailto:jdev-bounces at jabber.org]On Behalf
> Of Heiner Wolf
> Sent: Wednesday, June 23, 2004 4:51 PM
> To: Jdev at Jabber. Org (E-Mail)
> Subject: [jdev] MUC: setting participant to visitor does not work
>
>
> Hi,
>
> I am trying to silence a participant in a MUC sending and MUC
> responds just plain "error", no error code.
>
> Request:
> <iq type='set'
> to='de.c1696a54c481f0e3b374a331703a4f61c39c3289 at atlas.jabber.o
> rg' id='t1'>
> <query xmlns='http://jabber.org/protocol/muc#admin'>
> <item nick='Susi' role='visitor'/>
> </query>
> </iq>
>
> Response:
> <iq
> from='de.c1696a54c481f0e3b374a331703a4f61c39c3289 at atlas.jabber
> .org' id='t1' to='wolfspelz at jabber.bluehands.de/ef11b3416f3d'
> type='error'
> <query xmlns='http://jabber.org/protocol/muc#admin'>
> <item nick='Susi' role='visitor'/>
> </query>
> </iq>
>
> I am moderator:
> <presence
> from='de.e5229ec136892e00fcb79f822c192e7a2067a296 at atlas.jabber
> .org/WolfspelzLLuna' to='wolfspelz at jabber.bluehands.de/ef11b3416f3d'>
> <x xmlns='http://jabber.org/protocol/muc#user'>
> <item affiliation='owner'
> jid='wolfspelz at jabber.bluehands.de/ef11b3416f3d' role='moderator'/>
> </x>
> </presence>
>
> Susi is participant:
> <presence
> from='de.c1696a54c481f0e3b374a331703a4f61c39c3289 at atlas.jabber
> .org/Susi' to='wolfspelz at jabber.bluehands.de/ef11b3416f3d'>
> <x xmlns='http://jabber.org/protocol/muc#user'>
> <item affiliation='none'
> jid='42f561fdbd1f at jabber.surfnet.nl/b4ae2782223b' role='participant'/>
> </x>
> </presence>
>
> Conf component: MU-Conference 0.6.1-20031116
>
> Any ideas what it tries to tell me?
>
> hw
> --
> Dr. Klaus H. Wolf
> bluehands GmbH & Co.mmunication KG
> http://www.bluehands.de/people/hw
> +49 (0721) 16108 75
> --
> LLuna: Jabber enabled virtual presence on the web /
http://www.lluna.de/
Galactic developments: Open source future history / http://www.galactic-developments.com/
_______________________________________________
jdev mailing list
jdev at jabber.org
https://jabberstudio.org/mailman/listinfo/jdev
More information about the JDev
mailing list