diff src/protocols/oscar/oscar.c @ 11837:fa742ad8068c

[gaim-migrate @ 14128] Don't pass our active GaimStatus to the login PRPL callback... It's not used by most PRPLS, and that ones that DO use it probably shouldn't. Ideally the PRPLs won't store any info about their own status, message, etc. All that should be in the core status API, and when it needs some info it should query the core to get it. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 26 Oct 2005 05:40:02 +0000
parents 2cf6d4cf2cb0
children 346bd669c8f2
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Wed Oct 26 05:22:26 2005 +0000
+++ b/src/protocols/oscar/oscar.c	Wed Oct 26 05:40:02 2005 +0000
@@ -1756,22 +1756,14 @@
 }
 
 static void
-oscar_login(GaimAccount *account, GaimStatus *status)
+oscar_login(GaimAccount *account)
 {
 	aim_session_t *sess;
 	aim_conn_t *conn;
 	GaimConnection *gc = gaim_account_get_connection(account);
 	OscarData *od = gc->proto_data = g_new0(OscarData, 1);
-	GaimStatusType *status_type;
-	GaimStatusPrimitive primitive;
-
-	status_type = gaim_status_get_type(status);
-	primitive = gaim_status_type_get_primitive(status_type);
 
 	gaim_debug_misc("oscar", "oscar_login: gc = %p\n", gc);
-	
-	if (primitive == GAIM_STATUS_OFFLINE)
-		return;
 
 	if (!aim_snvalid(gaim_account_get_username(account))) {
 		gchar *buf;
@@ -1791,7 +1783,7 @@
 	sess = g_new0(aim_session_t, 1);
 	aim_session_init(sess, TRUE);
 	/*
-	 * We need an immediate queue because we don't use a while-loop 
+	 * We need an immediate queue because we don't use a while-loop
 	 * to see if things need to be sent.
 	 */
 	aim_tx_setenqueue(sess, AIM_TX_IMMEDIATE, NULL);