--- a/libpurple/protocols/gg/servconn.c Sun Jan 05 17:32:10 2014 +0530 +++ b/libpurple/protocols/gg/servconn.c Sun Jan 12 16:17:47 2014 +0530 @@ -97,3 +97,10 @@ return ggp_list_copy_to_slist_deep(global_data.server_history, (GCopyFunc)g_strdup, NULL); } + +void +ggp_servconn_remote_disconnect(PurpleConnection *gc) +{ + purple_debug_info("gg", "Server remotely closes connection"); + purple_account_disconnect(purple_connection_get_account(gc)); +}