Mercurial > pidgin.yaz
comparison plugins/msn/msn.c @ 1994:0c8073b877d2
[gaim-migrate @ 2004]
if you haven't aliased the person, use their friendly name
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 11 Jun 2001 23:17:02 +0000 |
parents | a4db3667da12 |
children | 162f749ee5e7 |
comparison
equal
deleted
inserted
replaced
1993:a4db3667da12 | 1994:0c8073b877d2 |
---|---|
631 } else if (!md->imported) { | 631 } else if (!md->imported) { |
632 if (bud_list_cache_exists(gc)) | 632 if (bud_list_cache_exists(gc)) |
633 do_import(NULL, gc); | 633 do_import(NULL, gc); |
634 md->imported = TRUE; | 634 md->imported = TRUE; |
635 while (md->fl) { | 635 while (md->fl) { |
636 struct msn_buddy *b = md->fl->data; | 636 struct msn_buddy *mb = md->fl->data; |
637 md->fl = g_slist_remove(md->fl, b); | 637 struct buddy *b; |
638 if (!find_buddy(gc, b->user)) | 638 md->fl = g_slist_remove(md->fl, mb); |
639 add_buddy(gc, "Buddies", b->user, b->friend); | 639 if (!(b = find_buddy(gc, mb->user))) |
640 g_free(b->user); | 640 add_buddy(gc, "Buddies", mb->user, mb->friend); |
641 g_free(b->friend); | 641 else if (!g_strcasecmp(b->name, b->show)) { |
642 g_free(b); | 642 g_snprintf(b->show, sizeof(b->show), "%s", mb->friend); |
643 handle_buddy_rename(b, b->name); | |
644 } | |
645 g_free(mb->user); | |
646 g_free(mb->friend); | |
647 g_free(mb); | |
643 } | 648 } |
644 } | 649 } |
645 } else if (!g_strncasecmp(buf, "MSG", 3)) { | 650 } else if (!g_strncasecmp(buf, "MSG", 3)) { |
646 char *user, *tmp = buf; | 651 char *user, *tmp = buf; |
647 int length; | 652 int length; |