Mercurial > pidgin
comparison src/protocols/jabber/jabber.c @ 4775:92ae181271e9
[gaim-migrate @ 5095]
This fixes a bug when adding a jabber dude to a new group, I think. I
dunno, it might fix some other stuff.
If Gaim were any less inanimate I would try to sleep with it so bad
it's not even funny.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 14 Mar 2003 17:06:00 +0000 |
parents | 01cae9259e2f |
children | e23a7e166680 |
comparison
equal
deleted
inserted
replaced
4774:e870e313be96 | 4775:92ae181271e9 |
---|---|
1747 if (BUD_SUB_TO_PEND(sub, ask) || BUD_SUBD_TO(sub, ask)) { | 1747 if (BUD_SUB_TO_PEND(sub, ask) || BUD_SUBD_TO(sub, ask)) { |
1748 if ((b = gaim_find_buddy(GJ_GC(gjc)->account, buddyname)) == NULL) { | 1748 if ((b = gaim_find_buddy(GJ_GC(gjc)->account, buddyname)) == NULL) { |
1749 struct buddy *b = gaim_buddy_new(GJ_GC(gjc)->account, buddyname, name); | 1749 struct buddy *b = gaim_buddy_new(GJ_GC(gjc)->account, buddyname, name); |
1750 struct group *g; | 1750 struct group *g; |
1751 if (groupname) { | 1751 if (groupname) { |
1752 if (!(g = gaim_find_group(groupname))) | 1752 if (!(g = gaim_find_group(groupname))) { |
1753 g = gaim_group_new(groupname); | 1753 g = gaim_group_new(groupname); |
1754 } else | 1754 gaim_blist_add_group(g, NULL); |
1755 } | |
1756 } else { | |
1755 g = gaim_group_new(_("Buddies")); | 1757 g = gaim_group_new(_("Buddies")); |
1758 gaim_blist_add_group(g, NULL); | |
1759 } | |
1756 debug_printf("adding buddy [4]: %s\n", buddyname); | 1760 debug_printf("adding buddy [4]: %s\n", buddyname); |
1757 gaim_blist_add_buddy(b, g, NULL); | 1761 gaim_blist_add_buddy(b, g, NULL); |
1758 gaim_blist_save(); | 1762 gaim_blist_save(); |
1759 } else { | 1763 } else { |
1760 struct group *c_grp = gaim_find_buddys_group(b); | 1764 struct group *c_grp = gaim_find_buddys_group(b); |