Hi,
  I tried to block a user by sending the fallowing stanza.
--
SEND:
-----------------------------------
<iq type="set" id="41221701208"> <query xmlns="jabber:iq:privacy"> <list
name="Example"> <item order="3" action="deny" group="myfriends" jid="
[EMAIL PROTECTED]" xmlns="jabber:iq:privacy">
<message></message>
</item>
</list>
</query>
</iq>
--
When i retrive the privacy list, its showing empty.
--
SEND:
-----------------------------------
<iq type="get" id="50219706223"> <query xmlns="jabber:iq:privacy"> <list
name="Example"></list>
</query>
</iq>

-----------------------------------

RECV [58]:
-----------------------------------
'<iq xmlns='jabber:client' id='41221701208' type='result'/>'
-----------------------------------

RECV [178]:
-----------------------------------
'<iq xmlns='jabber:client' id='50219706223' type='result'><query
xmlns='jabber:iq:privacy'><list name='Example'><item order='3'
action='deny'><message/></item></list></query></iq>'
-----------------------------------

SEND:
-----------------------------------
</stream:stream>
-----------------------------------
--
privacy list is not showing the blocked user. Even user will recieve the
message from the blocked user after blocking also.

Please let me know how to block a user and getting the blocked users
information.

Thanks,
Ganesh

Reply via email to