Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo_friend.c @ 26142:3b19ea3c8165
MSN Interoperability, add, remove buddies, change group, send im, etc
author | Sulabh Mahajan <sulabh@soc.pidgin.im> |
---|---|
date | Wed, 20 Aug 2008 21:11:56 +0000 |
parents | fa462a39cd47 |
children | 74bb0836f164 |
comparison
equal
deleted
inserted
replaced
26141:0e1fba363b01 | 26142:3b19ea3c8165 |
---|---|
234 } | 234 } |
235 } else if (presence == YAHOO_PRESENCE_ONLINE) { | 235 } else if (presence == YAHOO_PRESENCE_ONLINE) { |
236 if (f->presence == YAHOO_PRESENCE_PERM_OFFLINE) { | 236 if (f->presence == YAHOO_PRESENCE_PERM_OFFLINE) { |
237 pkt = yahoo_packet_new(YAHOO_SERVICE_PRESENCE_PERM, | 237 pkt = yahoo_packet_new(YAHOO_SERVICE_PRESENCE_PERM, |
238 YAHOO_STATUS_AVAILABLE, yd->session_id); | 238 YAHOO_STATUS_AVAILABLE, yd->session_id); |
239 yahoo_packet_hash(pkt, "ssssssss", | 239 if(f->protocol) |
240 yahoo_packet_hash(pkt, "ssssssiss", | |
241 1, purple_connection_get_display_name(gc), | |
242 31, "2", 13, "2", | |
243 302, "319", 300, "319", | |
244 7, name, 241, f->protocol, | |
245 301, "319", 303, "319"); | |
246 else | |
247 yahoo_packet_hash(pkt, "ssssssss", | |
240 1, purple_connection_get_display_name(gc), | 248 1, purple_connection_get_display_name(gc), |
241 31, "2", 13, "2", | 249 31, "2", 13, "2", |
242 302, "319", 300, "319", | 250 302, "319", 300, "319", |
243 7, name, | 251 7, name, |
244 301, "319", 303, "319"); | 252 301, "319", 303, "319"); |
253 | |
245 yahoo_packet_send_and_free(pkt, yd); | 254 yahoo_packet_send_and_free(pkt, yd); |
246 } | 255 } |
247 | 256 |
248 service = YAHOO_SERVICE_PRESENCE_SESSION; | 257 service = YAHOO_SERVICE_PRESENCE_SESSION; |
249 thirtyone = "1"; | 258 thirtyone = "1"; |
252 | 261 |
253 if (service > 0) { | 262 if (service > 0) { |
254 pkt = yahoo_packet_new(service, | 263 pkt = yahoo_packet_new(service, |
255 YAHOO_STATUS_AVAILABLE, yd->session_id); | 264 YAHOO_STATUS_AVAILABLE, yd->session_id); |
256 | 265 |
257 yahoo_packet_hash(pkt, "ssssssss", | 266 if(f->protocol) |
267 yahoo_packet_hash(pkt, "ssssssiss", | |
268 1, purple_connection_get_display_name(gc), | |
269 31, thirtyone, 13, thirteen, | |
270 302, "319", 300, "319", | |
271 7, name, 241, f->protocol, | |
272 301, "319", 303, "319"); | |
273 else | |
274 yahoo_packet_hash(pkt, "ssssssss", | |
258 1, purple_connection_get_display_name(gc), | 275 1, purple_connection_get_display_name(gc), |
259 31, thirtyone, 13, thirteen, | 276 31, thirtyone, 13, thirteen, |
260 302, "319", 300, "319", | 277 302, "319", 300, "319", |
261 7, name, | 278 7, name, |
262 301, "319", 303, "319"); | 279 301, "319", 303, "319"); |