Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
billyman #1
Member since Sep 2012 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: GrantMembership and ChangeAffiliation in MucManager
Hi,
After studying miniClient project I have these two problems.

1) GrantMembership :  when I used this method I got error

<iq from="qwqwqw@conference.nimbuzz.com" to="banbot101@nimbuzz.com/MatriX" type="error" id="MX_3" xmlns="jabber:client">
  <error code="500" type="wait">
    <internal-server-error xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  </error>
</iq>

but when I tried GrantAdminPrivileges method, it worked fine.

2) ChangeAffiliation : I didn't understand the last two arguments cb as System.EventHandler and state as object.

So please help me with these two problems.
Avatar
billyman #2
Member since Sep 2012 · 9 posts
Group memberships: Members
Show profile · Link to this post
@Alex
Please post a reply sir I promise I will not post anymore questions. As you suggested I did study the miniClient project. But now I am not able to understand how to solve these problems.
Avatar
Alex #3
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by billyman:
Please post a reply sir I promise I will not post anymore questions.
Its weekend here. I usually don't read the forums on weekend. I have no idea what going wrong. You Xml is not helpful at all because it does not contain the request you send.

Alex
Avatar
Alex #4
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #1
Quote by billyman on 2012-09-15, 20:15:
2) ChangeAffiliation : I didn't understand the last two arguments cb as System.EventHandler and state as object.

you can pass a callback in the cb argument which raises for the reply of the server. State is an optional state object of the callback which you can use to pass additional data.

Alex
Avatar
billyman #5
Member since Sep 2012 · 9 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #3
Quote by Alex:
You Xml is not helpful at all because it does not contain the request you send.

<iq id="MX_4" to="qwqwqw@conference.nimbuzz.com" type="set" xmlns="jabber:client">
  <query xmlns="http://jabber.org/protocol/muc#admin">
    <item affiliation="member" nick="billyman22" />
  </query>
</iq>
<iq from="qwqwqw@conference.nimbuzz.com" to="-b+bot-@nimbuzz.com/MatriX" type="error" id="MX_4" xmlns="jabber:client">
  <error code="400" type="modify">
    <bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  </error>
</iq>

This is xml that I sent and receieved.

And my second problem, I am still not getting it so finally I am manually writing xml and sending it.
Avatar
Alex #6
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
look at the MucManager, it has a GrantMembership function.
To me it looks like Nimbuzz does not support this feature, or the executing user has no permission for it. But in the second case the server should reply with another error

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: MatriX RSS