changeset 9397:3b0c6255033e

[gaim-migrate @ 10209] Add back some strings. We still don't actually use this code. It's used with web messenger, which i'll make us fall back on soon. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Fri, 25 Jun 2004 05:41:50 +0000
parents 84594a281500
children 245fa201ad6c
files src/protocols/yahoo/ycht.c
diffstat 1 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/ycht.c	Fri Jun 25 05:30:10 2004 +0000
+++ b/src/protocols/yahoo/ycht.c	Fri Jun 25 05:41:50 2004 +0000
@@ -400,10 +400,8 @@
 
 static void ycht_connection_error(YchtConn *ycht, const gchar *error)
 {
-#if 0
-/* string freeze */
+
 	gaim_notify_info(ycht->gc, NULL, _("Connection problem with the YCHT server."), error);
-#endif
 	ycht_connection_close(ycht);
 }
 
@@ -416,8 +414,7 @@
 	len = read(ycht->fd, buf, sizeof(buf));
 
 	if (len <= 0) {
-		/*ycht_connection_error(ycht, _("Unable to read"));*/
-		ycht_connection_error(ycht, NULL);
+		ycht_connection_error(ycht, _("Unable to read"));
 		return;
 	}
 
@@ -485,8 +482,7 @@
 	char *buf;
 
 	if (source < 0) {
-		/*ycht_connection_error(ycht, _("Unable to connect."));*/
-		ycht_connection_error(ycht, NULL);
+		ycht_connection_error(ycht, _("Unable to connect."));
 		return;
 	}
 
@@ -522,8 +518,7 @@
 	                       gaim_account_get_int(account, "ycht-port", YAHOO_YCHT_PORT),
 	                       ycht_got_connected, ycht) != 0)
 	{
-		/*ycht_connection_error(ycht, _("Connection problem"));*/
-		ycht_connection_error(ycht, NULL);
+		ycht_connection_error(ycht, _("Connection problem"));
 		return;
 	}
 }