# HG changeset patch # User Christian Hammond # Date 1065060936 0 # Node ID 943085b0ff8b60356167d55c7a178df441cf082e # Parent 6c8706109f9282aa1ae92a8397418f8a1bb5229e [gaim-migrate @ 7684] faceprint pointed out that parse_toc_buddy_list() was used in TOC, so it's now gaim_blist_parse_toc_buddy_list() (sucky function name). committer: Tailor Script diff -r 6c8706109f92 -r 943085b0ff8b src/blist.c --- a/src/blist.c Thu Oct 02 01:58:26 2003 +0000 +++ b/src/blist.c Thu Oct 02 02:15:36 2003 +0000 @@ -1458,7 +1458,7 @@ } } -static void parse_toc_buddy_list(GaimAccount *account, char *config) +void gaim_blist_parse_toc_buddy_list(GaimAccount *account, char *config) { char *c; char current[256]; @@ -1833,7 +1833,7 @@ if (buf) { buf = g_string_prepend(buf, "toc_set_config {"); buf = g_string_append(buf, "}\n"); - parse_toc_buddy_list(account, buf->str); + gaim_blist_parse_toc_buddy_list(account, buf->str); g_string_free(buf, TRUE); } } diff -r 6c8706109f92 -r 943085b0ff8b src/blist.h --- a/src/blist.h Thu Oct 02 01:58:26 2003 +0000 +++ b/src/blist.h Thu Oct 02 02:15:36 2003 +0000 @@ -664,6 +664,15 @@ void gaim_blist_save(); /** + * Parses the toc-style buddy list used in older versions of Gaim and for SSI in toc.c + * + * @param account This is the account that the buddies and groups from config will get added to + * @param config This is the toc-style buddy list data + */ +void gaim_blist_parse_toc_buddy_list(GaimAccount *account, char *config); + + +/** * Loads the buddy list from ~/.gaim/blist.xml. */ void gaim_blist_load(); diff -r 6c8706109f92 -r 943085b0ff8b src/protocols/toc/toc.c --- a/src/protocols/toc/toc.c Thu Oct 02 01:58:26 2003 +0000 +++ b/src/protocols/toc/toc.c Thu Oct 02 02:15:36 2003 +0000 @@ -717,7 +717,7 @@ } } else if (!g_ascii_strcasecmp(c, "CONFIG")) { c = strtok(NULL, ":"); - parse_toc_buddy_list(gc->account, c); + gaim_blist_parse_toc_buddy_list(gc->account, c); } else if (!g_ascii_strcasecmp(c, "NICK")) { /* ignore NICK so that things get imported/exported properly c = strtok(NULL, ":");