Mercurial > pidgin
comparison src/account.c @ 10443:b6ca0e1b19d0
[gaim-migrate @ 11703]
Shuffle some things around in prefs.c and use xmlnode/the util function
for saving prefs. Now all our xml files are written to disk at once,
with gobs of error detection. If anyone complains about losing their
config file with 2.x, send them to me. Muwha ha ha ha ha. Ha. Heh. Sigh.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 28 Dec 2004 19:11:15 +0000 |
parents | e41f0668a648 |
children | 6feef0a9098a |
comparison
equal
deleted
inserted
replaced
10442:937697da5233 | 10443:b6ca0e1b19d0 |
---|---|
255 xmlnode *node; | 255 xmlnode *node; |
256 char *data; | 256 char *data; |
257 | 257 |
258 if (!accounts_loaded) | 258 if (!accounts_loaded) |
259 { | 259 { |
260 gaim_debug_error("accounts", "Attempted to save accounts before they " | 260 gaim_debug_error("accounts", "Attempted to save accounts before " |
261 "were read!\n"); | 261 "they were read!\n"); |
262 return; | |
262 } | 263 } |
263 | 264 |
264 node = accounts_to_xmlnode(); | 265 node = accounts_to_xmlnode(); |
265 data = xmlnode_to_formatted_str(node, NULL); | 266 data = xmlnode_to_formatted_str(node, NULL); |
266 gaim_util_write_data_to_file("accounts.xml", data, -1); | 267 gaim_util_write_data_to_file("accounts.xml", data, -1); |