comparison src/protocols/yahoo/yahoo.c @ 12138:4e729e3d8f0b

[gaim-migrate @ 14439] (22:17:42) Peter Lawler (Bleeter): anyone up for applying a simple patch for me? it's for fixing one _debug output so it actually prints useful info, and introduces a new _debug so tracking down these presence problems will be easier. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 18 Nov 2005 22:22:09 +0000
parents 980c877bd238
children cbebda5f019c
comparison
equal deleted inserted replaced
12137:44104dfce57b 12138:4e729e3d8f0b
583 ((gc->account->perm_deny != GAIM_PRIVACY_ALLOW_BUDDYLIST) && 583 ((gc->account->perm_deny != GAIM_PRIVACY_ALLOW_BUDDYLIST) &&
584 (gc->account->perm_deny != GAIM_PRIVACY_DENY_ALL) && 584 (gc->account->perm_deny != GAIM_PRIVACY_DENY_ALL) &&
585 (gc->account->perm_deny != GAIM_PRIVACY_ALLOW_USERS))) 585 (gc->account->perm_deny != GAIM_PRIVACY_ALLOW_USERS)))
586 { 586 {
587 gc->account->perm_deny = GAIM_PRIVACY_DENY_USERS; 587 gc->account->perm_deny = GAIM_PRIVACY_DENY_USERS;
588 gaim_debug_info("yahoo", "Privacy defaulting to GAIM_PRIVACY_DENY_USERS.\n", 588 gaim_debug_info("yahoo", "%s privacy defaulting to GAIM_PRIVACY_DENY_USERS.\n",
589 gc->account->username); 589 gc->account->username);
590 } 590 }
591 591
592 if (perm_presence_buddies) { 592 if (perm_presence_buddies) {
593 buddies = g_strsplit(perm_presence_buddies, ",", -1); 593 buddies = g_strsplit(perm_presence_buddies, ",", -1);
594 for (bud = buddies; bud && *bud; bud++) { 594 for (bud = buddies; bud && *bud; bud++) {
595 f = yahoo_friend_find(gc, *bud); 595 f = yahoo_friend_find(gc, *bud);
596 if (f) 596 if (f) {
597 gaim_debug_info("yahoo", "%s setting presence for %s to PERM_OFFLINE\n",
598 gc->account->username, *bud);
597 f->presence = YAHOO_PRESENCE_PERM_OFFLINE; 599 f->presence = YAHOO_PRESENCE_PERM_OFFLINE;
600 }
598 } 601 }
599 g_strfreev(buddies); 602 g_strfreev(buddies);
600 603
601 } 604 }
602 } 605 }