diff src/protocols/oscar/admin.c @ 2672:c41030cfed76

[gaim-migrate @ 2685] Time has told me You're a rare, rare find A troubled cure For a troubled mind And time has told me Not to ask for more Someday our ocean Will find its shore committer: Tailor Script <tailor@pidgin.im>
author Adam Fritzler <mid@auk.cx>
date Mon, 05 Nov 2001 02:05:06 +0000
parents 933346315b9b
children 441b84ab7f4e
line wrap: on
line diff
--- a/src/protocols/oscar/admin.c	Sun Nov 04 12:54:41 2001 +0000
+++ b/src/protocols/oscar/admin.c	Mon Nov 05 02:05:06 2001 +0000
@@ -77,7 +77,9 @@
 {
 
 	mod->family = 0x0007;
-	mod->version = 0x0000;
+	mod->version = 0x0001;
+	mod->toolid = AIM_TOOL_NEWWIN;
+	mod->toolversion = 0x0361; /* XXX this and above aren't right */
 	mod->flags = 0;
 	strncpy(mod->name, "admin", sizeof(mod->name));
 	mod->snachandler = snachandler;
@@ -85,35 +87,6 @@
 	return 0;
 }
 
-faim_export int aim_auth_clientready(aim_session_t *sess, aim_conn_t *conn)
-{
-	static const struct aim_tool_version tools[] = {
-		{0x0001, 0x0003,    AIM_TOOL_NEWWIN, 0x0361},
-		{0x0007, 0x0001,    AIM_TOOL_NEWWIN, 0x0361},
-	};
-	int j;
-	aim_frame_t *tx;
-	int toolcount = sizeof(tools) / sizeof(struct aim_tool_version);
-	aim_snacid_t snacid;
-
-	if (!(tx = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x0002, 1152)))
-		return -ENOMEM;
-
-	snacid = aim_cachesnac(sess, 0x0001, 0x0002, 0x0000, NULL, 0);
-	aim_putsnac(&tx->data, 0x0001, 0x0002, 0x0000, snacid);
-
-	for (j = 0; j < toolcount; j++) {
-		aimbs_put16(&tx->data, tools[j].group);
-		aimbs_put16(&tx->data, tools[j].version);
-		aimbs_put16(&tx->data, tools[j].tool);
-		aimbs_put16(&tx->data, tools[j].toolversion);
-	}
-
-	aim_tx_enqueue(sess, tx);
-
-	return 0;
-}
-
 faim_export int aim_auth_changepasswd(aim_session_t *sess, aim_conn_t *conn, const char *newpw, const char *curpw)
 {
 	aim_frame_t *tx;
@@ -140,28 +113,6 @@
 	return 0;
 }
 
-faim_export int aim_auth_setversions(aim_session_t *sess, aim_conn_t *conn)
-{
-	aim_frame_t *tx;
-	aim_snacid_t snacid;
-
-	if (!(tx = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 18)))
-		return -ENOMEM;
-
-	snacid = aim_cachesnac(sess, 0x0001, 0x0017, 0x0000, NULL, 0);
-	aim_putsnac(&tx->data, 0x0001, 0x0017, 0x0000, snacid);
-
-	aimbs_put16(&tx->data, 0x0001);
-	aimbs_put16(&tx->data, 0x0003);
-
-	aimbs_put16(&tx->data, 0x0007);
-	aimbs_put16(&tx->data, 0x0001);
-
-	aim_tx_enqueue(sess, tx);
-
-	return 0;
-}
-
 /*
  * Request account confirmation. 
  *