Mercurial > pidgin.yaz
comparison src/pounce.c @ 6265:4d977ac75f76
[gaim-migrate @ 6762]
And of course I used a deprecated function.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 22 Jul 2003 06:46:01 +0000 |
parents | a5a43d03cb51 |
children | 08672f5033a7 |
comparison
equal
deleted
inserted
replaced
6264:a5a43d03cb51 | 6265:4d977ac75f76 |
---|---|
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_strcasecmp(gaim_pounce_get_pouncee(pounce), pouncee)) { | 379 !g_strncasecmp(gaim_pounce_get_pouncee(pounce), pouncee, |
380 strlen(pouncee))) { | |
380 | 381 |
381 handler = g_hash_table_lookup(pounce_handlers, pounce->ui_type); | 382 handler = g_hash_table_lookup(pounce_handlers, pounce->ui_type); |
382 | 383 |
383 if (handler != NULL && handler->cb != NULL) { | 384 if (handler != NULL && handler->cb != NULL) { |
384 handler->cb(pounce, events, gaim_pounce_get_data(pounce)); | 385 handler->cb(pounce, events, gaim_pounce_get_data(pounce)); |
404 for (l = gaim_pounces_get_all(); l != NULL; l = l->next) { | 405 for (l = gaim_pounces_get_all(); l != NULL; l = l->next) { |
405 pounce = (GaimPounce *)l->data; | 406 pounce = (GaimPounce *)l->data; |
406 | 407 |
407 if ((gaim_pounce_get_events(pounce) & events) && | 408 if ((gaim_pounce_get_events(pounce) & events) && |
408 (gaim_pounce_get_pouncer(pounce) == pouncer) && | 409 (gaim_pounce_get_pouncer(pounce) == pouncer) && |
409 !g_strcasecmp(gaim_pounce_get_pouncee(pounce), pouncee)) { | 410 !g_strncasecmp(gaim_pounce_get_pouncee(pounce), pouncee, |
411 strlen(pouncee))) { | |
410 | 412 |
411 return pounce; | 413 return pounce; |
412 } | 414 } |
413 } | 415 } |
414 | 416 |