changeset 20819:6d8708b99de1

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.
author Will Thompson <will.thompson@collabora.co.uk>
date Wed, 10 Oct 2007 15:35:01 +0000
parents c560286daede
children bc3c5daaf7aa
files pidgin/gtkconn.c
diffstat 1 files changed, 23 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);