comparison src/blist.c @ 10246:a66cf83552dc

[gaim-migrate @ 11386] I changed gaim_find_conversation and gaim_find_conversation_with_account The first parameter is now one of GAIM_CONV_IM, GAIM_CONV_CHAT or GAIM_CONV_ANY. Unfortunately, this changes a bajillion files. Please look over this and make sure I use the correct type everywhere. Especially in Novell and MSN, and somewhat in SILC. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 23 Nov 2004 06:14:15 +0000
parents 35eae887271a
children 8d42237564f6
comparison
equal deleted inserted replaced
10245:c143a3fac58d 10246:a66cf83552dc
260 buddy->timer = 0; 260 buddy->timer = 0;
261 261
262 if (ops && ops->update) 262 if (ops && ops->update)
263 ops->update(gaimbuddylist, (GaimBlistNode*)buddy); 263 ops->update(gaimbuddylist, (GaimBlistNode*)buddy);
264 264
265 conv = gaim_find_conversation_with_account(buddy->name, buddy->account); 265 conv = gaim_find_conversation_with_account(GAIM_CONV_IM, buddy->name,
266 buddy->account);
266 if (conv) { 267 if (conv) {
267 if (buddy->present == GAIM_BUDDY_ONLINE) 268 if (buddy->present == GAIM_BUDDY_ONLINE)
268 gaim_conversation_update(conv, GAIM_CONV_ACCOUNT_ONLINE); 269 gaim_conversation_update(conv, GAIM_CONV_ACCOUNT_ONLINE);
269 else if (buddy->present == GAIM_BUDDY_OFFLINE) 270 else if (buddy->present == GAIM_BUDDY_OFFLINE)
270 gaim_conversation_update(conv, GAIM_CONV_ACCOUNT_OFFLINE); 271 gaim_conversation_update(conv, GAIM_CONV_ACCOUNT_OFFLINE);
423 schedule_blist_save(); 424 schedule_blist_save();
424 425
425 if (ops && ops->update) 426 if (ops && ops->update)
426 ops->update(gaimbuddylist, (GaimBlistNode *)buddy); 427 ops->update(gaimbuddylist, (GaimBlistNode *)buddy);
427 428
428 conv = gaim_find_conversation_with_account(buddy->name, buddy->account); 429 conv = gaim_find_conversation_with_account(GAIM_CONV_IM, buddy->name,
430 buddy->account);
429 if (conv) 431 if (conv)
430 gaim_conversation_autoset_title(conv); 432 gaim_conversation_autoset_title(conv);
431 } 433 }
432 434
433 void gaim_blist_server_alias_buddy(GaimBuddy *buddy, const char *alias) 435 void gaim_blist_server_alias_buddy(GaimBuddy *buddy, const char *alias)
446 schedule_blist_save(); 448 schedule_blist_save();
447 449
448 if (ops && ops->update) 450 if (ops && ops->update)
449 ops->update(gaimbuddylist, (GaimBlistNode *)buddy); 451 ops->update(gaimbuddylist, (GaimBlistNode *)buddy);
450 452
451 conv = gaim_find_conversation_with_account(buddy->name, buddy->account); 453 conv = gaim_find_conversation_with_account(GAIM_CONV_IM, buddy->name,
454 buddy->account);
452 if (conv) 455 if (conv)
453 gaim_conversation_autoset_title(conv); 456 gaim_conversation_autoset_title(conv);
454 } 457 }
455 458
456 /* 459 /*