Mercurial > pidgin.yaz
changeset 6808:fce1bb126900
[gaim-migrate @ 7348]
this is more betterer
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 10 Sep 2003 17:07:25 +0000 |
parents | ff477c28df7b |
children | 754afaa07386 |
files | src/protocols/jabber/jabber.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c Wed Sep 10 16:46:40 2003 +0000 +++ b/src/protocols/jabber/jabber.c Wed Sep 10 17:07:25 2003 +0000 @@ -1914,15 +1914,15 @@ if ((b = gaim_find_buddy(GJ_GC(gjc)->account, buddyname)) == NULL) { GaimGroup *g; b = gaim_buddy_new(GJ_GC(gjc)->account, buddyname, name); - if (groupname) { - if (!(g = gaim_find_group(groupname))) { - g = gaim_group_new(groupname); - gaim_blist_add_group(g, NULL); - } - } else { - g = gaim_group_new(_("Buddies")); + + if(!groupname) + groupname = _("Buddies"); + + if (!(g = gaim_find_group(groupname))) { + g = gaim_group_new(groupname); gaim_blist_add_group(g, NULL); } + gaim_debug(GAIM_DEBUG_INFO, "jabber", "adding buddy [4]: %s\n", buddyname); gaim_blist_add_buddy(b, NULL, g, NULL);