comparison src/pounce.c @ 6264:a5a43d03cb51

[gaim-migrate @ 6761] The pouncee specified in a buddy pounce is no longer case-sensitive. Or whatever. I think that description kind of sucked. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 22 Jul 2003 06:44:30 +0000
parents a4f2aba0848d
children 4d977ac75f76
comparison
equal deleted inserted replaced
6263:3565ee7a5dd3 6264:a5a43d03cb51
374 pounce = (GaimPounce *)l->data; 374 pounce = (GaimPounce *)l->data;
375 l_next = l->next; 375 l_next = l->next;
376 376
377 if ((gaim_pounce_get_events(pounce) & events) && 377 if ((gaim_pounce_get_events(pounce) & events) &&
378 (gaim_pounce_get_pouncer(pounce) == pouncer) && 378 (gaim_pounce_get_pouncer(pounce) == pouncer) &&
379 !strcmp(gaim_pounce_get_pouncee(pounce), pouncee)) { 379 !g_strcasecmp(gaim_pounce_get_pouncee(pounce), pouncee)) {
380 380
381 handler = g_hash_table_lookup(pounce_handlers, pounce->ui_type); 381 handler = g_hash_table_lookup(pounce_handlers, pounce->ui_type);
382 382
383 if (handler != NULL && handler->cb != NULL) { 383 if (handler != NULL && handler->cb != NULL) {
384 handler->cb(pounce, events, gaim_pounce_get_data(pounce)); 384 handler->cb(pounce, events, gaim_pounce_get_data(pounce));
404 for (l = gaim_pounces_get_all(); l != NULL; l = l->next) { 404 for (l = gaim_pounces_get_all(); l != NULL; l = l->next) {
405 pounce = (GaimPounce *)l->data; 405 pounce = (GaimPounce *)l->data;
406 406
407 if ((gaim_pounce_get_events(pounce) & events) && 407 if ((gaim_pounce_get_events(pounce) & events) &&
408 (gaim_pounce_get_pouncer(pounce) == pouncer) && 408 (gaim_pounce_get_pouncer(pounce) == pouncer) &&
409 !strcmp(gaim_pounce_get_pouncee(pounce), pouncee)) { 409 !g_strcasecmp(gaim_pounce_get_pouncee(pounce), pouncee)) {
410 410
411 return pounce; 411 return pounce;
412 } 412 }
413 } 413 }
414 414