--- a/libpurple/connection.c Tue Sep 18 22:04:20 2007 +0000
+++ b/libpurple/connection.c Wed Sep 19 11:39:42 2007 +0000
@@ -531,6 +531,7 @@
case PURPLE_REASON_NETWORK_ERROR:
+ case PURPLE_REASON_AUTHENTICATION_IMPOSSIBLE: case PURPLE_REASON_AUTHENTICATION_FAILED:
case PURPLE_REASON_ENCRYPTION_ERROR:
--- a/libpurple/connection.h Tue Sep 18 22:04:20 2007 +0000
+++ b/libpurple/connection.h Wed Sep 19 11:39:42 2007 +0000
@@ -58,10 +58,18 @@
/** Possible errors that can cause a connection to be closed. */
- /** There was an error sending or receiving on the network socket. */
+ /** There was an error sending or receiving on the network socket, or + * there was some protocol error (such as the server sending malformed PURPLE_REASON_NETWORK_ERROR = 0,
- /** The username or password was invalid. */
+ /** The username or password (or some other credential) was incorrect. PURPLE_REASON_AUTHENTICATION_FAILED,
+ /** libpurple doesn't speak any of the authentication methods the + PURPLE_REASON_AUTHENTICATION_IMPOSSIBLE, /** There was an error negotiating SSL on this connection, or encryption
* was unavailable and an account option was set to require it.