Mercurial > pidgin.yaz
changeset 1683:394a3a344273
[gaim-migrate @ 1693]
don't add buddies if you haven't already added them.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 05 Apr 2001 00:59:38 +0000 |
parents | 4328efeb531e |
children | 89c19002e73d |
files | plugins/jabber/jabber.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/jabber/jabber.c Wed Apr 04 16:45:20 2001 +0000 +++ b/plugins/jabber/jabber.c Thu Apr 05 00:59:38 2001 +0000 @@ -743,7 +743,8 @@ groupname = xmlnode_get_data(xmlnode_get_firstchild(g)); if (groupname == NULL) groupname = "Buddies"; - if (!(b = find_buddy(GJ_GC(j), buddyname))) { + if (strcasecmp(sub, "from") && + !(b = find_buddy(GJ_GC(j), buddyname))) { debug_printf("adding buddy: %s\n", buddyname); b = add_buddy(GJ_GC(j), groupname, buddyname, @@ -770,7 +771,7 @@ continue; } buddyname = g_strdup_printf("%s@%s", who->user, who->server); - if (!(b = find_buddy(GJ_GC(j), buddyname))) { + if (strcasecmp(sub, "from") && !(b = find_buddy(GJ_GC(j), buddyname))) { b = add_buddy(GJ_GC(j), "Buddies", buddyname, name ? name : Jid); build_edit_tree(); do_export(0, 0);