diff src/protocols/oscar/oscar.c @ 7693:1d0314b99747

[gaim-migrate @ 8338] this doesn't seem to crash, so I figured I'd put it in get rid of the gaim_{buddy,chat,group}_{get,set}_setting() functions and replace them with gaim_blist_node_{get,set}_{bool,int,string} so we can have types, and clean up the code, all at the same time. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 02 Dec 2003 07:08:02 +0000
parents 8a826b27fcfb
children 2176fef95d9b
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Tue Dec 02 04:04:11 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Tue Dec 02 07:08:02 2003 +0000
@@ -1834,10 +1834,11 @@
 		 * If for some reason the checksum is valid, but cached file is not..
 		 * we want to know.
 		 */
-		filename = gaim_buddy_get_setting(b, "buddy_icon");
+		filename = gaim_blist_node_get_string((GaimBlistNode*)b, "buddy_icon");
 		if (filename != NULL) {
 			if (g_file_test(filename, G_FILE_TEST_EXISTS))
-				saved_b16 = gaim_buddy_get_setting(b, "icon_checksum");
+				saved_b16 = gaim_blist_node_get_string((GaimBlistNode*)b,
+						"icon_checksum");
 		} else
 			saved_b16 = NULL;
 
@@ -3468,7 +3469,7 @@
 									  sn, icon, iconlen);
 		b16 = gaim_base16_encode(iconcsum, iconcsumlen);
 		if (b16) {
-			gaim_buddy_set_setting(b, "icon_checksum", b16);
+			gaim_blist_node_set_string((GaimBlistNode*)b, "icon_checksum", b16);
 			gaim_blist_save();
 			g_free(b16);
 		}
@@ -4076,7 +4077,7 @@
 		g_snprintf(who, sizeof(who), "%u", info->uin);
 		serv_got_alias(gc, who, utf8);
 		if ((b = gaim_find_buddy(gc->account, who))) {
-			gaim_buddy_set_setting(b, "servernick", utf8);
+			gaim_blist_node_set_string((GaimBlistNode*)b, "servernick", utf8);
 			gaim_blist_save();
 		}
 		g_free(utf8);
@@ -4959,7 +4960,7 @@
 							continue;
 						buddy = (GaimBuddy *)bnode;
 						if (buddy->account == gc->account) {
-							const char *servernick = gaim_buddy_get_setting(buddy, "servernick");
+							const char *servernick = gaim_blist_node_get_string((GaimBlistNode*)buddy, "servernick");
 							if (servernick)
 								serv_got_alias(gc, buddy->name, servernick);