--- a/libpurple/protocols/gg/libgaduw.c Fri Sep 28 00:07:30 2012 +0200 +++ b/libpurple/protocols/gg/libgaduw.c Fri Sep 28 01:21:01 2012 +0200 @@ -32,6 +32,7 @@ #include <debug.h> #include "purplew.h" +#include "gg.h" /******************************************************************************* * HTTP requests. @@ -138,3 +139,13 @@ req->h->destroy(req->h); g_free(req); } + +const gchar * ggp_libgaduw_version(PurpleConnection *gc) +{ + GGPInfo *accdata = purple_connection_get_protocol_data(gc); + const gchar *ver = accdata->session->client_version; + + if (ver != NULL && isdigit(ver[0])) + return ver; + return GG_DEFAULT_CLIENT_VERSION; +}