Mercurial > pidgin
comparison src/protocols/gg/gg.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 | c4c28874ecd3 |
children | 1e28e7d802a1 |
comparison
equal
deleted
inserted
replaced
4774:e870e313be96 | 4775:92ae181271e9 |
---|---|
1 /* | 1 /* |
2 * gaim - Gadu-Gadu Protocol Plugin | 2 * gaim - Gadu-Gadu Protocol Plugin |
3 * $Id: gg.c 5088 2003-03-14 11:38:21Z seanegan $ | 3 * $Id: gg.c 5095 2003-03-14 17:06:00Z thekingant $ |
4 * | 4 * |
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> | 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License as published by | 8 * it under the terms of the GNU General Public License as published by |
804 group = g_strdup(group_tbl[0]); | 804 group = g_strdup(group_tbl[0]); |
805 } | 805 } |
806 g_strfreev(group_tbl); | 806 g_strfreev(group_tbl); |
807 } | 807 } |
808 /* Add Buddy to our userlist */ | 808 /* Add Buddy to our userlist */ |
809 if (!(g = gaim_find_group(group))) | 809 if (!(g = gaim_find_group(group))) { |
810 g = gaim_group_new(group); | 810 g = gaim_group_new(group); |
811 gaim_blist_add_group(g, NULL); | |
812 } | |
811 b = gaim_buddy_new(gc->account, name, strlen(show) ? show : NULL); | 813 b = gaim_buddy_new(gc->account, name, strlen(show) ? show : NULL); |
812 gaim_blist_add_buddy(b,g,NULL); | 814 gaim_blist_add_buddy(b,g,NULL); |
813 gaim_blist_save(); | 815 gaim_blist_save(); |
814 g_free(group); | 816 g_free(group); |
815 } | 817 } |