[ekg2-commit] r4188 - trunk/plugins/icq: trunk/plugins/icq/icq.c trunk/plugins/icq/icq_snac_handlers_01service.c

SVN commit svn w toxygen.net
Wto, 5 Sie 2008, 23:23:56 CEST


Author: darkjames
Date: 2008-08-05 23:23:55 +0200 (Tue, 05 Aug 2008)
New Revision: 4188

Modified:
   trunk/plugins/icq/icq.c
   trunk/plugins/icq/icq_snac_handlers_01service.c
Log:
yep, it should be 0x13, 0x02 
 not              0x01, 0x02
sorry :)

remove !params[0] coz we have COMMAND_ENABLEREQPARAMS. i think it's enough?


Modified: trunk/plugins/icq/icq.c
===================================================================
--- trunk/plugins/icq/icq.c	2008-08-05 21:08:33 UTC (rev 4187)
+++ trunk/plugins/icq/icq.c	2008-08-05 21:23:55 UTC (rev 4188)
@@ -850,9 +850,6 @@
 
 	/* XXX, cookie */
 
-	if (!params[0])
-		return -1;
-
 	pkt = icq_pack("T", icq_pack_tlv_str(ROT16(0x015E), params[0]));	/* TLV_EMAIL */
 
 	icq_makemetasnac(session, pkt, 2000, 0x0573, 0);	/* META_SEARCH_EMAIL */

Modified: trunk/plugins/icq/icq_snac_handlers_01service.c
===================================================================
--- trunk/plugins/icq/icq_snac_handlers_01service.c	2008-08-05 21:08:33 UTC (rev 4187)
+++ trunk/plugins/icq/icq_snac_handlers_01service.c	2008-08-05 21:23:55 UTC (rev 4188)
@@ -103,13 +103,11 @@
 		servlistcookie* ack;
 		DWORD dwCookie;
 #endif
-
 		/* CLI_REQLISTS - we want to use SSI */
+		str = string_init(NULL);
 //		str = icq_pack("tW", icq_pack_tlv_word(0x0B, 0x000F));	/* mimic ICQ 6 */
-		/* ?WO? 01,02 ??? */
-//		icq_makesnac(s, str, 0x01, 0x02, 0, 0);
-//		icq_send_pkt(s, str);
-
+		icq_makesnac(s, str, 0x13, 0x02, 0, 0);
+		icq_send_pkt(s, str);
 #if 0
 		if (!wRecordCount) { /* CLI_REQROSTER */
 			/* we do not have any data - request full list */
@@ -154,14 +152,8 @@
 			sendServPacket(&packet);
 		}
 #else
-
-		/* temporary always send: CLI_REQROSTER */
 		str = string_init(NULL);
 //		icq_makesnac(s, str, 0x13, 0x04, 0, 0);
-		icq_makesnac(s, str, 0x13, 0x02, 0, 0);
-		icq_send_pkt(s, str);
-
-		str = string_init(NULL);
 		icq_pack_append(str, "I", (uint32_t) 0x0000);
 		icq_pack_append(str, "I", (uint32_t) 0x0000);
 		icq_makesnac(s, str, 0x13, 0x05, 0, 0);



Więcej informacji o liście dyskusyjnej ekg2-commit