im.pidgin.cpw.resiak.disconnectreason: 82343b928e1fb6c158e98f4ef6425d627dd2dfdc

resiak at soc.pidgin.im resiak at soc.pidgin.im
Wed Oct 10 11:40:32 EDT 2007


-----------------------------------------------------------------
Revision: 82343b928e1fb6c158e98f4ef6425d627dd2dfdc
Ancestor: 2c0fa0892b42671d5e81f4b528fc2af2624085b3
Author: resiak at soc.pidgin.im
Date: 2007-10-10T15:35:01
Branch: im.pidgin.cpw.resiak.disconnectreason

Modified files:
        pidgin/gtkconn.c

ChangeLog: 

Show a snazzy message with a link to the SSL FAQ if the connection died for
that reason; don't talk about "correcting the error" if you sign on elsewhere,
just about needing to reenable.

-------------- next part --------------
============================================================
--- pidgin/gtkconn.c	efa6bde5d9a2d6e20e136cb18afa317409ef99ac
+++ pidgin/gtkconn.c	c6b9349b7df710dc9118b7626f95ae2b3add0278
@@ -181,9 +181,29 @@ pidgin_connection_report_disconnect_reas
 		}
 
 		p = g_strdup_printf(_("%s disconnected"), n);
-		s = g_strdup_printf(_("%s\n\n"
-				"%s will not attempt to reconnect the account until you "
-				"correct the error and re-enable the account."), text, PIDGIN_NAME);
+		switch (reason)
+		{
+			case PURPLE_REASON_NO_SSL_SUPPORT:
+				s = g_strdup_printf(
+					_("%s\n\n"
+					"%s will not attempt to reconnect the account until you "
+					"re-enable the account.  See %s for information on how to "
+					"compile %s with SSL support."), text, PIDGIN_NAME,
+					"http://developer.pidgin.im/wiki/FAQssl", PIDGIN_NAME);
+				break;
+			case PURPLE_REASON_NAME_IN_USE:
+				s = g_strdup_printf(
+					_("%s\n\n"
+					"%s will not attempt to reconnect the account until you "
+					"re-enable it."), text, PIDGIN_NAME);
+				break;
+			default:
+				s = g_strdup_printf(
+					_("%s\n\n"
+					"%s will not attempt to reconnect the account until you "
+					"correct the error and re-enable the account."), text,
+					PIDGIN_NAME);
+		}
 		purple_notify_error(NULL, NULL, p, s);
 		g_free(p);
 		g_free(s);


More information about the Commits mailing list