[jdev] Ad-Hoc Commands permissions
James Bunton
james at delx.cjb.net
Sat Aug 27 02:19:33 CDT 2005
Hi all.
I'm implementing a few ad-hoc commands in PyMSNt.
What should I send as a response if the requesting client doesn't have
permission to execute the command?
At the moment it goes like this
<iq type="set" to="msn.delx.cjb.net" id="ac83a" >
<command xmlns="http://jabber.org/protocol/commands"
node="connectusers" />
</iq>
<iq from="msn.delx.cjb.net" type="error" id="ac83a"
to="james at delx.cjb.net/Powerbook" >
<error type="cancel" code="401" >
<not-authorized/>
</error>
</iq>
Psi (with ad-hoc patches) doesn't display any error though, and
JEP-0050 doesn't actually mention an error case for lack of
permissions.
---
James
More information about the JDev
mailing list