From: Luke S. <lsc...@us...> - 2004-05-21 12:02:38
|
Update of /cvsroot/gaim/gaim/src/protocols/gg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1227/src/protocols/gg Modified Files: gg.c Log Message: i was looking at this file in relation to bug #946916, and the red bars were annoying me. Index: gg.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/gg/gg.c,v retrieving revision 1.100 retrieving revision 1.101 diff -u -d -p -r1.100 -r1.101 --- gg.c 21 May 2004 00:32:40 -0000 1.100 +++ gg.c 21 May 2004 12:02:27 -0000 1.101 @@ -291,7 +291,7 @@ static void agg_load_buddy_list(GaimConn show = charset_convert(data_tbl[3], "CP1250", "UTF-8"); name = data_tbl[6]; - + if (invalid_uin(name)) { continue; } @@ -319,19 +319,19 @@ static void agg_load_buddy_list(GaimConn b = gaim_buddy_new(gc->account, name, strlen(show) ? show : NULL); gaim_blist_add_buddy(b,NULL,g,NULL); gaim_blist_save(); - + userlist_size++; userlist = g_renew(uin_t, userlist, userlist_size); userlist[userlist_size - 1] = (uin_t) strtol((char *)name, (char **)NULL, 10); - + g_free(group); } g_free(show); g_strfreev(data_tbl); } g_strfreev(users_tbl); - + if (userlist) { gg_notify(gd->sess, userlist, userlist_size); g_free(userlist); @@ -369,17 +369,17 @@ static void agg_save_buddy_list (GaimCon newdata = g_strdup_printf("%s;%s;%s;%s;%s;%s;%s;%s%s\r\n", show, show, show, show, "", gname, name, "", ""); - + ptr = buddylist; buddylist = g_strconcat(ptr, newdata, NULL); - + g_free(newdata); g_free(ptr); } } } } - + /* save the list to the gadu gadu server */ gg_userlist_request(gd->sess, GG_USERLIST_PUT, buddylist); } @@ -553,7 +553,7 @@ static void main_callback(gpointer data, switch (e->event.userlist.type) { case GG_USERLIST_GET_REPLY: { - + if (e->event.userlist.reply) { agg_load_buddy_list(gc, e->event.userlist.reply); } |