# HG changeset patch # User Christian Hammond # Date 1049579477 0 # Node ID 494a050318c7a7a985474540f6800fcc3a544e7f # Parent 20b4b0328a3ec68dba7a296dc8dc98097c6232d2 [gaim-migrate @ 5390] Now multiple pounces for one buddy will trigger on the actions. committer: Tailor Script diff -r 20b4b0328a3e -r 494a050318c7 src/pounce.c --- a/src/pounce.c Sat Apr 05 19:09:53 2003 +0000 +++ b/src/pounce.c Sat Apr 05 21:51:17 2003 +0000 @@ -146,14 +146,22 @@ const char *pouncee, GaimPounceEvent events) { struct gaim_pounce *pounce; + GList *l; if (events == GAIM_POUNCE_NONE || pouncer == NULL || pouncee == NULL) return; - pounce = gaim_find_pounce(pouncer, pouncee, events); + for (l = gaim_get_pounces(); l != NULL; l = l->next) { + pounce = (struct gaim_pounce *)l->data; - if (pounce != NULL && pounce->callback != NULL) - pounce->callback(pounce, events, gaim_pounce_get_data(pounce)); + if ((gaim_pounce_get_events(pounce) & events) && + (gaim_pounce_get_pouncer(pounce) == pouncer) && + !strcmp(gaim_pounce_get_pouncee(pounce), pouncee)) { + + if (pounce->callback != NULL) + pounce->callback(pounce, events, gaim_pounce_get_data(pounce)); + } + } } struct gaim_pounce *