Show a snazzy message with a link to the SSL FAQ if the connection died for cpw.resiak.disconnectreason

Wed, 10 Oct 2007 15:35:01 +0000

author
Will Thompson <resiak@pidgin.im>
date
Wed, 10 Oct 2007 15:35:01 +0000
branch
cpw.resiak.disconnectreason
changeset 21155
90fac5772527
parent 21154
be1799decdb7
child 21156
c47055d4ce2a

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.

pidgin/gtkconn.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkconn.c	Wed Oct 10 15:16:20 2007 +0000
+++ b/pidgin/gtkconn.c	Wed Oct 10 15:35:01 2007 +0000
@@ -181,9 +181,29 @@
 		}
 
 		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);

mercurial