On 11/11/2005, at 9:11 PM, Magnus Henoch wrote:

> I'm running PyMSNt from SVN branch 0_10_x, just updated.
>
> When a user registers with the transport with wrong password, no
> presence error when he tries to log on; PyMSNt only sends an error
> message and an "unavailable" presence.  PyICQt sends:
>
> <presence type="error">
>   <error type="auth">
>     <not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
>     <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">
>       Authentication Error!
>       Invalid Username or Password.
>       http://www.aim.com/errors/MISMATCH_PASSWD.html?ccode=us&lang=en
>     </text>
>   </error>
> </presence>
>
> It would be nice if PyMSNt would do the same.
>
> Sending an error <message/> as PyMSNt does isn't strictly
> XMPP-compliant, as XMPP requires that error stanzas be of the same
> type as the stanza that caused the error (i.e. <presence/> for
> <presence/>).
>
> Additionally, this would make it possible for my automatic
> registration tool to log on with negative priority on an ejabberd
> server, as ejabberd discards <message/>s of type "error" when there is
> no online resource with non-negative priority.
>
> Magnus

Good idea. Thanks.

---

James

Reply via email to