Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 7125:208cb260d7a7
[gaim-migrate @ 7692]
as long as we're pissing off plugin developers...
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 02 Oct 2003 05:26:40 +0000 |
parents | bf630f7dfdcd |
children | 8246bd3141ae |
comparison
equal
deleted
inserted
replaced
7124:be4ca65b3b48 | 7125:208cb260d7a7 |
---|---|
1815 else | 1815 else |
1816 bi->availmsg = NULL; | 1816 bi->availmsg = NULL; |
1817 | 1817 |
1818 /* Server stored icon stuff */ | 1818 /* Server stored icon stuff */ |
1819 if (info->iconcsumlen) { | 1819 if (info->iconcsumlen) { |
1820 char *filename = NULL, *b16 = NULL, *saved_b16 = NULL; | 1820 const char *filename = NULL, *saved_b16 = NULL; |
1821 char *b16 = NULL; | |
1821 GaimBuddy *b = NULL; | 1822 GaimBuddy *b = NULL; |
1822 | 1823 |
1823 b16 = gaim_base16_encode(info->iconcsum, info->iconcsumlen); | 1824 b16 = gaim_base16_encode(info->iconcsum, info->iconcsumlen); |
1824 b = gaim_find_buddy(gc->account, info->sn); | 1825 b = gaim_find_buddy(gc->account, info->sn); |
1825 /* | 1826 /* |
1828 */ | 1829 */ |
1829 filename = gaim_buddy_get_setting(b, "buddy_icon"); | 1830 filename = gaim_buddy_get_setting(b, "buddy_icon"); |
1830 if (filename != NULL) { | 1831 if (filename != NULL) { |
1831 if (g_file_test(filename, G_FILE_TEST_EXISTS)) | 1832 if (g_file_test(filename, G_FILE_TEST_EXISTS)) |
1832 saved_b16 = gaim_buddy_get_setting(b, "icon_checksum"); | 1833 saved_b16 = gaim_buddy_get_setting(b, "icon_checksum"); |
1833 g_free(filename); | |
1834 } else | 1834 } else |
1835 saved_b16 = NULL; | 1835 saved_b16 = NULL; |
1836 | 1836 |
1837 if (!b16 || !saved_b16 || strcmp(b16, saved_b16)) { | 1837 if (!b16 || !saved_b16 || strcmp(b16, saved_b16)) { |
1838 GSList *cur = od->requesticon; | 1838 GSList *cur = od->requesticon; |
1843 if (od->icontimer) | 1843 if (od->icontimer) |
1844 g_source_remove(od->icontimer); | 1844 g_source_remove(od->icontimer); |
1845 od->icontimer = g_timeout_add(500, gaim_icon_timerfunc, gc); | 1845 od->icontimer = g_timeout_add(500, gaim_icon_timerfunc, gc); |
1846 } | 1846 } |
1847 } | 1847 } |
1848 g_free(saved_b16); | |
1849 g_free(b16); | 1848 g_free(b16); |
1850 } | 1849 } |
1851 | 1850 |
1852 serv_got_update(gc, info->sn, 1, (info->warnlevel/10.0) + 0.5, signon, time_idle, type); | 1851 serv_got_update(gc, info->sn, 1, (info->warnlevel/10.0) + 0.5, signon, time_idle, type); |
1853 | 1852 |
4894 for (bnode = cnode->child; bnode; bnode = bnode->next) { | 4893 for (bnode = cnode->child; bnode; bnode = bnode->next) { |
4895 if(!GAIM_BLIST_NODE_IS_BUDDY(bnode)) | 4894 if(!GAIM_BLIST_NODE_IS_BUDDY(bnode)) |
4896 continue; | 4895 continue; |
4897 buddy = (GaimBuddy *)bnode; | 4896 buddy = (GaimBuddy *)bnode; |
4898 if (buddy->account == gc->account) { | 4897 if (buddy->account == gc->account) { |
4899 gchar *servernick = gaim_buddy_get_setting(buddy, "servernick"); | 4898 const char *servernick = gaim_buddy_get_setting(buddy, "servernick"); |
4900 if (servernick) { | 4899 if (servernick) |
4901 serv_got_alias(gc, buddy->name, servernick); | 4900 serv_got_alias(gc, buddy->name, servernick); |
4902 g_free(servernick); | 4901 |
4903 } | |
4904 if (aim_ssi_itemlist_exists(sess->ssi.local, buddy->name)) { | 4902 if (aim_ssi_itemlist_exists(sess->ssi.local, buddy->name)) { |
4905 /* Store local alias on server */ | 4903 /* Store local alias on server */ |
4906 char *alias = aim_ssi_getalias(sess->ssi.local, group->name, buddy->name); | 4904 char *alias = aim_ssi_getalias(sess->ssi.local, group->name, buddy->name); |
4907 if (!alias && buddy->alias && strlen(buddy->alias)) | 4905 if (!alias && buddy->alias && strlen(buddy->alias)) |
4908 aim_ssi_aliasbuddy(sess, group->name, buddy->name, buddy->alias); | 4906 aim_ssi_aliasbuddy(sess, group->name, buddy->name, buddy->alias); |