Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.c @ 9371:30598cb2efb5
[gaim-migrate @ 10179]
Yahoo Japan works again. We were sending it the wrong proto ver before.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Thu, 24 Jun 2004 04:02:44 +0000 |
parents | 76f4bffcfb23 |
children | 3aa848ccf986 |
comparison
equal
deleted
inserted
replaced
9370:76f4bffcfb23 | 9371:30598cb2efb5 |
---|---|
243 return -1; | 243 return -1; |
244 | 244 |
245 data = g_malloc0(len + 1); | 245 data = g_malloc0(len + 1); |
246 | 246 |
247 memcpy(data + pos, "YMSG", 4); pos += 4; | 247 memcpy(data + pos, "YMSG", 4); pos += 4; |
248 pos += yahoo_put16(data + pos, YAHOO_PROTO_VER); | 248 |
249 if (yd->wm) | |
250 pos += yahoo_put16(data + pos, YAHOO_WEBMESSENGER_PROTO_VER); | |
251 else | |
252 pos += yahoo_put16(data + pos, YAHOO_PROTO_VER); | |
253 | |
249 pos += yahoo_put16(data + pos, 0x0000); | 254 pos += yahoo_put16(data + pos, 0x0000); |
250 pos += yahoo_put16(data + pos, pktlen); | 255 pos += yahoo_put16(data + pos, pktlen); |
251 pos += yahoo_put16(data + pos, pkt->service); | 256 pos += yahoo_put16(data + pos, pkt->service); |
252 pos += yahoo_put32(data + pos, pkt->status); | 257 pos += yahoo_put32(data + pos, pkt->status); |
253 pos += yahoo_put32(data + pos, pkt->id); | 258 pos += yahoo_put32(data + pos, pkt->id); |
276 return -1; | 281 return -1; |
277 | 282 |
278 data = g_malloc0(len + 1); | 283 data = g_malloc0(len + 1); |
279 | 284 |
280 memcpy(data + pos, "YMSG", 4); pos += 4; | 285 memcpy(data + pos, "YMSG", 4); pos += 4; |
286 | |
281 pos += yahoo_put16(data + pos, YAHOO_PROTO_VER); | 287 pos += yahoo_put16(data + pos, YAHOO_PROTO_VER); |
288 | |
282 pos += yahoo_put16(data + pos, 0x0000); | 289 pos += yahoo_put16(data + pos, 0x0000); |
283 pos += yahoo_put16(data + pos, pktlen + pad); | 290 pos += yahoo_put16(data + pos, pktlen + pad); |
284 pos += yahoo_put16(data + pos, pkt->service); | 291 pos += yahoo_put16(data + pos, pkt->service); |
285 pos += yahoo_put32(data + pos, pkt->status); | 292 pos += yahoo_put32(data + pos, pkt->status); |
286 pos += yahoo_put32(data + pos, pkt->id); | 293 pos += yahoo_put32(data + pos, pkt->id); |