Mercurial > pidgin.yaz
comparison src/buddy.c @ 2131:acc11216ec5d
[gaim-migrate @ 2141]
changing some gtk_timeout stuff to g_timeout (since it's likely that these will be used in core rather than gtk-ui). also fixed a small buddy pounce bug.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 06 Aug 2001 23:38:48 +0000 |
parents | af59d854de29 |
children | a6b9983cead1 |
comparison
equal
deleted
inserted
replaced
2130:50c7a704ee56 | 2131:acc11216ec5d |
---|---|
1693 buddy_pounces = g_list_remove(buddy_pounces, b); | 1693 buddy_pounces = g_list_remove(buddy_pounces, b); |
1694 do_bp_menu(); | 1694 do_bp_menu(); |
1695 save_prefs(); | 1695 save_prefs(); |
1696 } | 1696 } |
1697 | 1697 |
1698 void do_pounce(char *name, int when) | 1698 void do_pounce(struct gaim_connection *gc, char *name, int when) |
1699 { | 1699 { |
1700 char *who; | 1700 char *who; |
1701 | 1701 |
1702 struct buddy_pounce *b; | 1702 struct buddy_pounce *b; |
1703 struct conversation *c; | 1703 struct conversation *c; |
1715 | 1715 |
1716 u = find_user(b->pouncer, b->protocol); /* find our user */ | 1716 u = find_user(b->pouncer, b->protocol); /* find our user */ |
1717 if (u == NULL) continue; | 1717 if (u == NULL) continue; |
1718 | 1718 |
1719 /* check and see if we're signed on as the pouncer */ | 1719 /* check and see if we're signed on as the pouncer */ |
1720 if (u->gc == NULL) continue; | 1720 if (u->gc != gc) continue; |
1721 | 1721 |
1722 if (!g_strcasecmp(who, normalize(b->name))) { /* find someone to pounce */ | 1722 if (!g_strcasecmp(who, normalize(b->name))) { /* find someone to pounce */ |
1723 if (b->options & OPT_POUNCE_POPUP) { | 1723 if (b->options & OPT_POUNCE_POPUP) { |
1724 c = find_conversation(name); | 1724 c = find_conversation(name); |
1725 if (c == NULL) | 1725 if (c == NULL) |