[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/yahoo2/libyahoo2 libyahoo2.c,1.4,1.5
From: |
Philip S Tellis <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/yahoo2/libyahoo2 libyahoo2.c,1.4,1.5 |
Date: |
Tue, 21 Jan 2003 06:03:48 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/yahoo2/libyahoo2
In directory subversions:/tmp/cvs-serv11996/modules/yahoo2/libyahoo2
Modified Files:
libyahoo2.c
Log Message:
fixed utf8 encoding for sending offline messages
Index: libyahoo2.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/yahoo2/libyahoo2/libyahoo2.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- libyahoo2.c 19 Jan 2003 13:58:05 -0000 1.4
+++ libyahoo2.c 21 Jan 2003 11:03:21 -0000 1.5
@@ -150,16 +150,25 @@
YAHOO_SERVICE_GAMEMSG = 0x2a,
YAHOO_SERVICE_FILETRANSFER = 0x46,
YAHOO_SERVICE_VOICECHAT = 0x4A,
- YAHOO_SERVICE_NOTIFY = 0x4B,
- YAHOO_SERVICE_P2PFILEXFER = 0x4D,
+ YAHOO_SERVICE_NOTIFY,
+ YAHOO_SERVICE_VERIFY,
+ YAHOO_SERVICE_P2PFILEXFER,
YAHOO_SERVICE_PEERTOPEER = 0x4F, /* Checks if P2P possible */
YAHOO_SERVICE_AUTHRESP = 0x54,
- YAHOO_SERVICE_LIST = 0x55,
+ YAHOO_SERVICE_LIST,
YAHOO_SERVICE_AUTH = 0x57,
YAHOO_SERVICE_ADDBUDDY = 0x83,
- YAHOO_SERVICE_REMBUDDY = 0x84,
- YAHOO_SERVICE_IGNORECONTACT = 0x85, /* > 1, 7, 13 < 1, 66, 13, 0*/
- YAHOO_SERVICE_REJECTCONTACT = 0x86
+ YAHOO_SERVICE_REMBUDDY,
+ YAHOO_SERVICE_IGNORECONTACT, /* > 1, 7, 13 < 1, 66, 13, 0*/
+ YAHOO_SERVICE_REJECTCONTACT,
+ YAHOO_SERVICE_CHATONLINE = 0x96,
+ YAHOO_SERVICE_CHATGOTO,
+ YAHOO_SERVICE_CHATJOIN,
+ YAHOO_SERVICE_CHATLEAVE,
+ YAHOO_SERVICE_CHATEXIT = 0x9b,
+ YAHOO_SERVICE_CHATLOGOUT = 0xa0,
+ YAHOO_SERVICE_CHATPING,
+ YAHOO_SERVICE_COMMENT = 0xa8
};
struct yahoo_pair {
@@ -1167,6 +1176,7 @@
char *who = NULL;
char *msg = NULL;
char *name = NULL;
+ long tm = 0L;
int state = YAHOO_STATUS_AVAILABLE;
int online = FALSE;
int away = 0;
@@ -1185,6 +1195,8 @@
name = pair->value;
else if (pair->key == 10)
state = strtol(pair->value, NULL, 10);
+ else if (pair->key == 15)
+ tm = strtol(pair->value, NULL, 10);
else if (pair->key == 13)
online = strtol(pair->value, NULL, 10);
else if (pair->key == 47)
@@ -1629,6 +1641,10 @@
if(utf8)
yahoo_packet_hash(pkt, 97, "1");
+ yahoo_packet_hash(pkt, 63, ";0");
+ yahoo_packet_hash(pkt, 64, "0");
+
+
yahoo_send_packet(yd, pkt, 0);
yahoo_packet_free(pkt);
@@ -1851,12 +1867,6 @@
if(!yd)
return;
- /*
- * this seems to work by adding the buddy to the new group, then
- * removing from the old group. there's an additional field - 14
- * that probably says that this is a group rename.
- * I wonder what YAHOO_SERVICE_GROUPRENAME is for then
- */
pkt = yahoo_packet_new(YAHOO_SERVICE_ADDBUDDY, YAHOO_STATUS_AVAILABLE,
yd->id);
yahoo_packet_hash(pkt, 1, yd->user);
yahoo_packet_hash(pkt, 7, who);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/yahoo2/libyahoo2 libyahoo2.c,1.4,1.5,
Philip S Tellis <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.173,1.174 configure.in,1.169,1.170
- Next by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.175,1.176 configure.in,1.171,1.172
- Previous by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.173,1.174 configure.in,1.169,1.170
- Next by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.175,1.176 configure.in,1.171,1.172
- Index(es):