comparison libpurple/protocols/oscar/family_icbm.c @ 22342:03b2b21b4c42

* Don't flag outgoing oscar messages as "offline deliverable" if the message is an auto-reply. Fixes #4941. * Don't flag outgoing oscar messages as "offline deliverable" if the destination user is a cell phone or if we know that the destination user is currently online
author Mark Doliner <mark@kingant.net>
date Thu, 28 Feb 2008 08:15:27 +0000
parents a8c025929245
children 75d53b0fae6c 085d0a18a7f7
comparison
equal deleted inserted replaced
22341:53873732f90a 22342:03b2b21b4c42
370 370
371 /* Set the Autoresponse flag */ 371 /* Set the Autoresponse flag */
372 if (args->flags & AIM_IMFLAGS_AWAY) { 372 if (args->flags & AIM_IMFLAGS_AWAY) {
373 byte_stream_put16(&data, 0x0004); 373 byte_stream_put16(&data, 0x0004);
374 byte_stream_put16(&data, 0x0000); 374 byte_stream_put16(&data, 0x0000);
375 } else if (args->flags & AIM_IMFLAGS_ACK) { 375 } else {
376 /* Set the Request Acknowledge flag */ 376 if (args->flags & AIM_IMFLAGS_ACK) {
377 byte_stream_put16(&data, 0x0003); 377 /* Set the Request Acknowledge flag */
378 byte_stream_put16(&data, 0x0000); 378 byte_stream_put16(&data, 0x0003);
379 } 379 byte_stream_put16(&data, 0x0000);
380 380 }
381 if (args->flags & AIM_IMFLAGS_OFFLINE) { 381
382 byte_stream_put16(&data, 0x0006); 382 if (args->flags & AIM_IMFLAGS_OFFLINE) {
383 byte_stream_put16(&data, 0x0000); 383 /* Allow this message to be queued as an offline message */
384 byte_stream_put16(&data, 0x0006);
385 byte_stream_put16(&data, 0x0000);
386 }
384 } 387 }
385 388
386 /* 389 /*
387 * Set the I HAVE A REALLY PURTY ICON flag. 390 * Set the I HAVE A REALLY PURTY ICON flag.
388 * XXX - This should really only be sent on initial 391 * XXX - This should really only be sent on initial