--- a/libpurple/protocols/gg/Makefile.am Thu Jun 07 10:47:50 2012 +0000
+++ b/libpurple/protocols/gg/Makefile.am Fri Jun 08 16:47:57 2012 +0000
@@ -1,13 +1,18 @@
+pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)
@@ -15,11 +20,9 @@
@@ -31,38 +34,7 @@
-pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)
-INTGG_CFLAGS = -I$(top_srcdir)/libpurple/protocols/gg/lib -DGG_IGNORE_DEPRECATED -DUSE_INTERNAL_LIBGADU
+INTGG_CFLAGS = -I$(top_srcdir)/libpurple/protocols/gg/lib -DGG_IGNORE_DEPRECATED @@ -113,4 +85,3 @@
--- a/libpurple/protocols/gg/gg.c Thu Jun 07 10:47:50 2012 +0000
+++ b/libpurple/protocols/gg/gg.c Fri Jun 08 16:47:57 2012 +0000
@@ -2332,24 +2332,19 @@
glp->status = glp->status|GG_STATUS_FRIENDS_MASK;
address = purple_account_get_string(account, "gg_server", "");
- if (address && *address) {
- /* TODO: Make this non-blocking */
- struct in_addr *addr = gg_gethostbyname(address);
- purple_debug_info("gg", "Using gg server given by user (%s)\n", address);
- gchar *tmp = g_strdup_printf(_("Unable to resolve hostname '%s': %s"),
- address, g_strerror(errno));
+ if (address && *address) + glp->server_addr = inet_addr(address); + glp->server_port = 8074; + if (glp->server_addr == INADDR_NONE) purple_connection_error(gc,
- PURPLE_CONNECTION_ERROR_NETWORK_ERROR, /* should this be a settings error? */
+ PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, + _("Provided server IP address is not valid"));
- glp->server_addr = inet_addr(inet_ntoa(*addr));
- glp->server_port = 8074;
purple_debug_info("gg", "Trying to retrieve address from gg appmsg service\n");
@@ -2970,7 +2965,7 @@
PurpleAccountOption *option;
GList *encryption_options = NULL;
- purple_debug_info("gg", "init_plugin: [libgadu version: %s]\n",
+ purple_debug_info("gg", "Loading Gadu-Gadu plugin with libgadu %s...\n", option = purple_account_option_string_new(_("GG server"),
--- a/libpurple/protocols/gg/lib/config.h Thu Jun 07 10:47:50 2012 +0000
+++ b/libpurple/protocols/gg/lib/config.h Fri Jun 08 16:47:57 2012 +0000
@@ -1,11 +1,10 @@
-/* Local libgadu configuration. */
-#ifndef __GG_LIBGADU_CONFIG_H
-#define __GG_LIBGADU_CONFIG_H
+/* Local libgadu configuration file. */ +#define GG_LIBGADU_VERSION "1.11.1" /* Defined if libgadu was compiled for bigendian machine. */
#undef GG_CONFIG_BIGENDIAN
@@ -76,8 +75,3 @@
# define GG_CONFIG_HAVE_SYS_TYPES_H
-#define vnsprintf g_vnsprintf
--- a/libpurple/protocols/gg/lib/libgadu.c Thu Jun 07 10:47:50 2012 +0000
+++ b/libpurple/protocols/gg/lib/libgadu.c Fri Jun 08 16:47:57 2012 +0000
@@ -60,8 +60,6 @@
# include <openssl/rand.h>
-#define GG_LIBGADU_VERSION "1.11.1"
* Port gniazda nasłuchującego dla połączeń bezpośrednich.