--- a/libpurple/protocols/gg/servconn.c Tue Feb 04 02:33:17 2014 +0530 +++ b/libpurple/protocols/gg/servconn.c Tue Feb 04 02:50:48 2014 +0530 @@ -48,14 +48,14 @@ void ggp_servconn_setup(PurpleAccountOption *server_option) { purple_prefs_add_string(GGP_SERVCONN_HISTORY_PREF, ""); - + global_data.server_option = server_option; global_data.server_history = ggp_strsplit_list(purple_prefs_get_string( GGP_SERVCONN_HISTORY_PREF), ";", GGP_SERVCONN_HISTORY_MAXLEN + 1); global_data.server_history = ggp_list_truncate( global_data.server_history, GGP_SERVCONN_HISTORY_MAXLEN, g_free); - + purple_account_option_string_set_hints(global_data.server_option, ggp_servconn_get_servers()); } @@ -69,7 +69,7 @@ { GList *old_entry; gchar *joined; - + old_entry = g_list_find_custom(global_data.server_history, server, (GCompareFunc)g_strcmp0); if (old_entry) @@ -78,7 +78,7 @@ global_data.server_history = g_list_delete_link( global_data.server_history, old_entry); } - + global_data.server_history = g_list_prepend(global_data.server_history, g_strdup(server)); global_data.server_history = ggp_list_truncate(