comparison src/server.c @ 1235:a9cf2f61a7b1

[gaim-migrate @ 1245] 1. added protocol names to menus in conversation/join chat dialog. helpful if you're signed on as warmenhoven in both irc and yahoo. 2. made "no sounds when away" mean absolutely no sounds when away. 3. fixed buddy pounces and made it so you can save them. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 12 Dec 2000 09:09:24 +0000
parents a487b35ac05a
children b5783215b245
comparison
equal deleted inserted replaced
1234:cedf7047081e 1235:a9cf2f61a7b1
334 new_conv = 1; 334 new_conv = 1;
335 cnv = new_conversation(name); 335 cnv = new_conversation(name);
336 } 336 }
337 } 337 }
338 if (cnv != NULL) { 338 if (cnv != NULL) {
339 if (sound_options & OPT_SOUND_WHEN_AWAY) 339 play_sound(RECEIVE);
340 play_sound(RECEIVE);
341 write_to_conv(cnv, message, away | WFLAG_RECV, NULL); 340 write_to_conv(cnv, message, away | WFLAG_RECV, NULL);
342 } 341 }
343 342
344 } else { 343 } else {
345 if (cnv == NULL) { 344 if (cnv == NULL) {
452 451
453 } 452 }
454 453
455 if (!b->idle && idle) plugin_event(event_buddy_idle, gc, b->name, 0, 0); 454 if (!b->idle && idle) plugin_event(event_buddy_idle, gc, b->name, 0, 0);
456 if (b->idle && !idle) { 455 if (b->idle && !idle) {
457 do_pounce(b->name); 456 do_pounce(b->name, OPT_POUNCE_UNIDLE);
458 plugin_event(event_buddy_unidle, gc, b->name, 0, 0); 457 plugin_event(event_buddy_unidle, gc, b->name, 0, 0);
459 } 458 }
460 459
461 b->idle = idle; 460 b->idle = idle;
462 b->evil = evil; 461 b->evil = evil;
463 462
464 if ((b->uc & UC_UNAVAILABLE) && !(type & UC_UNAVAILABLE)) { 463 if ((b->uc & UC_UNAVAILABLE) && !(type & UC_UNAVAILABLE)) {
465 do_pounce(b->name); 464 do_pounce(b->name, OPT_POUNCE_UNAWAY);
466 plugin_event(event_buddy_back, gc, b->name, 0, 0); 465 plugin_event(event_buddy_back, gc, b->name, 0, 0);
467 } else if (!(b->uc & UC_UNAVAILABLE) && (type & UC_UNAVAILABLE)) { 466 } else if (!(b->uc & UC_UNAVAILABLE) && (type & UC_UNAVAILABLE)) {
468 plugin_event(event_buddy_away, gc, b->name, 0, 0); 467 plugin_event(event_buddy_away, gc, b->name, 0, 0);
469 } 468 }
470 469
474 b->signon = signon; 473 b->signon = signon;
475 474
476 if (loggedin) { 475 if (loggedin) {
477 if (!b->present) { 476 if (!b->present) {
478 b->present = 1; 477 b->present = 1;
479 do_pounce(b->name); 478 do_pounce(b->name, OPT_POUNCE_SIGNON);
480 plugin_event(event_buddy_signon, gc, b->name, 0, 0); 479 plugin_event(event_buddy_signon, gc, b->name, 0, 0);
481 } 480 }
482 } else { 481 } else {
483 if (b->present) 482 if (b->present)
484 plugin_event(event_buddy_signoff, gc, b->name, 0, 0); 483 plugin_event(event_buddy_signoff, gc, b->name, 0, 0);