changeset 11295:ee1b890760be

[gaim-migrate @ 13495] Don't change the presence of an account when enabling or disabling the account. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 18 Aug 2005 04:57:47 +0000
parents ad976105c306
children 87a7fdd3ffcc
files src/gtkaccount.c
diffstat 1 files changed, 0 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkaccount.c	Thu Aug 18 04:35:53 2005 +0000
+++ b/src/gtkaccount.c	Thu Aug 18 04:57:47 2005 +0000
@@ -2111,30 +2111,6 @@
 					   COLUMN_DATA, &account,
 					   COLUMN_ENABLED, &enabled,
 					   -1);
-	if (enabled) {
-		gaim_account_set_status(account, "offline", TRUE, NULL);
-	} else {
-		GaimGtkBuddyList *gtkblist;
-		const char *type;
-		GaimStatus *status;
-		GaimStatusType *status_type;
-
-		gtkblist = gaim_gtk_blist_get_default_gtk_blist();
-		type = gtk_gaim_status_box_get_active_type(GTK_GAIM_STATUS_BOX(gtkblist->statusbox));
-		status = gaim_account_get_status(account, type);
-		status_type = gaim_status_get_type(status);
-
-		if (gaim_status_type_get_attr(status_type, "message") != NULL)
-		{
-			const char *message;
-			message = gtk_gaim_status_box_get_message(GTK_GAIM_STATUS_BOX(gtkblist->statusbox));
-			gaim_account_set_status(account, type, TRUE, "message", message, NULL);
-		}
-		else
-		{
-			gaim_account_set_status(account, type, TRUE, NULL);
-		}
-	}
 
 	gaim_account_set_enabled(account, GAIM_GTK_UI, !enabled);