comparison src/pounce.c @ 6271:08672f5033a7

[gaim-migrate @ 6768] g_strncasecmp is just as deprecated, but uglier ;-) committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 22 Jul 2003 12:36:32 +0000
parents 4d977ac75f76
children 601c2a52d74a
comparison
equal deleted inserted replaced
6270:1bf6fd117797 6271:08672f5033a7
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 !g_strncasecmp(gaim_pounce_get_pouncee(pounce), pouncee, 379 !gaim_utf8_strcasecmp(gaim_pounce_get_pouncee(pounce), pouncee)) {
380 strlen(pouncee))) {
381 380
382 handler = g_hash_table_lookup(pounce_handlers, pounce->ui_type); 381 handler = g_hash_table_lookup(pounce_handlers, pounce->ui_type);
383 382
384 if (handler != NULL && handler->cb != NULL) { 383 if (handler != NULL && handler->cb != NULL) {
385 handler->cb(pounce, events, gaim_pounce_get_data(pounce)); 384 handler->cb(pounce, events, gaim_pounce_get_data(pounce));
405 for (l = gaim_pounces_get_all(); l != NULL; l = l->next) { 404 for (l = gaim_pounces_get_all(); l != NULL; l = l->next) {
406 pounce = (GaimPounce *)l->data; 405 pounce = (GaimPounce *)l->data;
407 406
408 if ((gaim_pounce_get_events(pounce) & events) && 407 if ((gaim_pounce_get_events(pounce) & events) &&
409 (gaim_pounce_get_pouncer(pounce) == pouncer) && 408 (gaim_pounce_get_pouncer(pounce) == pouncer) &&
410 !g_strncasecmp(gaim_pounce_get_pouncee(pounce), pouncee, 409 !gaim_utf8_strcasecmp(gaim_pounce_get_pouncee(pounce), pouncee)) {
411 strlen(pouncee))) {
412 410
413 return pounce; 411 return pounce;
414 } 412 }
415 } 413 }
416 414