diff src/protocols/msn/msn.c @ 11718:11e95968c9ff

[gaim-migrate @ 14009] PRPLs are no longer required to call gaim_account_connect() and gaim_account_disconnect()--it is done in the core. Having the PRPLs do it was kind of silly. And this should allow me to improve the auto-reconnect plugin some. I think. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 22 Oct 2005 20:09:24 +0000
parents c9b815aeddc1
children fa742ad8068c
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Sat Oct 22 19:56:02 2005 +0000
+++ b/src/protocols/msn/msn.c	Sat Oct 22 20:09:24 2005 +0000
@@ -886,15 +886,7 @@
 
 	gaim_debug_info("msn", "Set status to %s\n", gaim_status_get_name(status));
 
-	if (!strcmp(state, "offline") && (gc != NULL)) {
-		gaim_account_disconnect(account);
-		return;
-	}
-	else if (strcmp(state, "offline") && (gc == NULL)) {
-		gaim_account_connect(account);
-		return;
-	}
-	else if (!strcmp(state, "away"))
+	if (!strcmp(state, "away"))
 		msnstatus = MSN_AWAY;
 	else if (!strcmp(state, "brb"))
 		msnstatus = MSN_BRB;