changeset 1115:114cd406b022

[gaim-migrate @ 1125] should be using signoff() after failures committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 21 Nov 2000 01:06:42 +0000
parents c61f9c384413
children 35476475f794
files plugins/irc.c src/buddy.c src/multi.c
diffstat 3 files changed, 7 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/irc.c	Tue Nov 21 01:00:45 2000 +0000
+++ b/plugins/irc.c	Tue Nov 21 01:06:42 2000 +0000
@@ -861,7 +861,7 @@
 	host = gethostbyname(user->proto_opt[0]);
 	if (!host) {
 		hide_login_progress(gc, "Unable to resolve hostname");
-		destroy_gaim_conn(gc);
+		signoff(gc);
 		return;
 	}
 
@@ -872,13 +872,13 @@
 	fd = socket(AF_INET, SOCK_STREAM, 0);
 	if (fd < 0) {
 		hide_login_progress(gc, "Unable to create socket");
-		destroy_gaim_conn(gc);
+		signoff(gc);
 		return;
 	}
 
 	if (connect(fd, (struct sockaddr *)&site, sizeof(site)) < 0) {
 		hide_login_progress(gc, "Unable to connect.");
-		destroy_gaim_conn(gc);
+		signoff(gc);
 		return;
 	}
 
--- a/src/buddy.c	Tue Nov 21 01:00:45 2000 +0000
+++ b/src/buddy.c	Tue Nov 21 01:06:42 2000 +0000
@@ -282,6 +282,10 @@
 	update_keepalive(gc, FALSE);
 	serv_close(gc);
 	redo_buddy_list();
+#ifdef USE_APPLET
+	if (connections)
+		set_user_state(online);
+#endif
 
 	if (connections) return;
 
--- a/src/multi.c	Tue Nov 21 01:00:45 2000 +0000
+++ b/src/multi.c	Tue Nov 21 01:06:42 2000 +0000
@@ -851,13 +851,4 @@
 	if (gc->meter)
 		gtk_widget_destroy(gc->meter);
 	gc->meter = NULL;
-#ifdef USE_APPLET
-	if (g_slist_length(connections) > 1) {
-		/* we still have connections left, we can still be online */
-		set_user_state(online);
-	} else {
-		/* this connection is about to be destroyed, so let's go offline */
-		set_user_state(offline);
-	}
-#endif
 }