Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
.net_developer #1
Member since Sep 2015 · 41 posts
Group memberships: Members
Show profile · Link to this post
Subject: Modify ownerlist to remove yourself from ownerlist
hello,i want to know the procedure and if possible example to modify the owner list and remove myself from list of owners,i saw the miniclient example,but couldn't get the way ofdoing it,if modifylist() is the method that does it,than how to use it to remove yourself as owner.please provide example if you have any..thanks in advance
Avatar
.net_developer #2
Member since Sep 2015 · 41 posts
Group memberships: Members
Show profile · Link to this post
Solved it!!! without using modifylist(), just sent an adminiq with affiliation of type none.

  1. AdminIq aIq = new AdminIq();
  2. aIq.To = new Jid(fr_id);
  3. aIq.Type = IqType.set;
  4. agsXMPP.protocol.x.muc.iq.admin.Item itm = new agsXMPP.protocol.x.muc.iq.admin.Item();
  5. itm.Affiliation = Affiliation.none;
  6. itm.Jid = new Jid(GlobalVar.my_perm_id+"@your server name");
  7. itm.Nickname = GlobalVar.my_perm_id;
  8.  
  9. aIq.Query.AddItem(itm);
  10. yu.IqGrabber.SendIq(aIq, cb11);
This post was edited on 2015-09-17, 12:49 by Alex.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS