comparison src/server.c @ 145:41bd1cd48571

[gaim-migrate @ 155] Modified how the "<AUTO-REPLY>" thing works. Works better now, IMHO. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 21 Apr 2000 01:25:44 +0000
parents 4e91b92f91a7
children 789c792ed14b
comparison
equal deleted inserted replaced
144:e8dae982b37c 145:41bd1cd48571
508 } 508 }
509 } 509 }
510 g_free(nname); 510 g_free(nname);
511 511
512 cnv = find_conversation(name); 512 cnv = find_conversation(name);
513 if (away) away = WFLAG_AUTO;
513 514
514 if (awaymessage != NULL) { 515 if (awaymessage != NULL) {
515 if (!(general_options & OPT_GEN_DISCARD_WHEN_AWAY)) { 516 if (!(general_options & OPT_GEN_DISCARD_WHEN_AWAY)) {
516 if (cnv == NULL) { 517 if (cnv == NULL) {
517 new_conv = 1; 518 new_conv = 1;
519 } 520 }
520 } 521 }
521 if (cnv != NULL) { 522 if (cnv != NULL) {
522 if (sound_options & OPT_SOUND_WHEN_AWAY) 523 if (sound_options & OPT_SOUND_WHEN_AWAY)
523 play_sound(AWAY); 524 play_sound(AWAY);
524 write_to_conv(cnv, message, WFLAG_AUTO | WFLAG_RECV); 525 write_to_conv(cnv, message, away | WFLAG_RECV);
525 } 526 }
526 527
527 } else { 528 } else {
528 if (cnv == NULL) { 529 if (cnv == NULL) {
529 new_conv = 1; 530 new_conv = 1;
533 play_sound(FIRST_RECEIVE); 534 play_sound(FIRST_RECEIVE);
534 } else { 535 } else {
535 if (cnv->makesound && (sound_options & OPT_SOUND_RECV)) 536 if (cnv->makesound && (sound_options & OPT_SOUND_RECV))
536 play_sound(RECEIVE); 537 play_sound(RECEIVE);
537 } 538 }
538 write_to_conv(cnv, message, WFLAG_RECV); 539 write_to_conv(cnv, message, away | WFLAG_RECV);
539 } 540 }
540 541
541 542
542 543
543 544