Re: complementarity of MUCRoom::handlePresence
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Mon, 21 May 2007 11:33:42 +0200 (CEST)
Hi,

Thanks, fixed in trunk rev 2342.

cheers,
Jakob

On Tue May 15 2007, 程晖 wrote:
> hi Jakob:
> while receiving a "destroy" MUCRoom message such as below:
> *<presence type='unavailable'
> **from='ss@xxxxxxxxxxxxxxxxxxx/ss'*<from='ss@xxxxxxxxxxxxxxxxxxx/ss'>
> * **to='bruce1@xxxxxxxx/5173385c'><x*
> <to='bruce1@xxxxxxxx/5173385c'><x>*xmlns='
> http://jabber.org/protocol/muc#user'><item affiliation='none'
> role='none'/><destroy
> jid='another'><reason>ssssssssssssssssssssss</reason></destroy></x></presen
>ce> *
> MUCRoom::handlePresence has none disposal.
> i add some disposal for recommend,but i need your right way of handler it
> for further instruction.
> --------------------------------------------------------------------------
>  if ( (*it)->name() == "destroy")
>     {
>      party.alternate = (*it)->findAttribute( "jid" );
>      if( (*it)->hasChild( "reason" ) )
>      {
>       party.reason = (*it)->findChild( "reason" )->cdata();
>      }
>      party.destroyRoom = true;
>     }
> // "alternate" and "destroyRoom" is the fields i add in MUCRoomParticipant
> ---------------------------------------------------------------------------
>------ With best regards.
>
> kudoo

Attachment: pgplUcegVgUgI.pgp
Description: PGP signature