Mercurial > pidgin.yaz
comparison src/conversation.c @ 10247:a05868a7920e
[gaim-migrate @ 11387]
Make GAIM_CONV_ANY work.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 23 Nov 2004 06:17:45 +0000 |
parents | a66cf83552dc |
children | 1034e77ff0ce |
comparison
equal
deleted
inserted
replaced
10246:a66cf83552dc | 10247:a05868a7920e |
---|---|
1341 | 1341 |
1342 for (cnv = gaim_get_conversations(); cnv != NULL; cnv = cnv->next) { | 1342 for (cnv = gaim_get_conversations(); cnv != NULL; cnv = cnv->next) { |
1343 c = (GaimConversation *)cnv->data; | 1343 c = (GaimConversation *)cnv->data; |
1344 name2 = gaim_normalize(NULL, gaim_conversation_get_name(c)); | 1344 name2 = gaim_normalize(NULL, gaim_conversation_get_name(c)); |
1345 | 1345 |
1346 if ((type == gaim_conversation_get_type(c)) && | 1346 if (((type == GAIM_CONV_ANY) || (type == gaim_conversation_get_type(c))) && |
1347 !gaim_utf8_strcasecmp(name1, name2)) | 1347 !gaim_utf8_strcasecmp(name1, name2)) |
1348 break; | 1348 break; |
1349 | 1349 |
1350 c = NULL; | 1350 c = NULL; |
1351 } | 1351 } |
1371 | 1371 |
1372 for (cnv = gaim_get_conversations(); cnv != NULL; cnv = cnv->next) { | 1372 for (cnv = gaim_get_conversations(); cnv != NULL; cnv = cnv->next) { |
1373 c = (GaimConversation *)cnv->data; | 1373 c = (GaimConversation *)cnv->data; |
1374 name2 = gaim_normalize(account, gaim_conversation_get_name(c)); | 1374 name2 = gaim_normalize(account, gaim_conversation_get_name(c)); |
1375 | 1375 |
1376 if ((type == gaim_conversation_get_type(c)) && | 1376 if (((type == GAIM_CONV_ANY) || (type == gaim_conversation_get_type(c))) && |
1377 (account == gaim_conversation_get_account(c)) && | 1377 (account == gaim_conversation_get_account(c)) && |
1378 !gaim_utf8_strcasecmp(name1, name2)) { | 1378 !gaim_utf8_strcasecmp(name1, name2)) { |
1379 | 1379 |
1380 break; | 1380 break; |
1381 } | 1381 } |