Description: fix the auto-join on connect toggle
Author: Marc Deslauriers <marc.deslauriers@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/xchat-gnome/+bug/871573
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=658795

Index: xchat-gnome-0.30.0~git20141005.816798/src/fe-gnome/navigation-tree.c
===================================================================
--- xchat-gnome-0.30.0~git20141005.816798.orig/src/fe-gnome/navigation-tree.c	2014-10-05 11:31:33.000000000 -0400
+++ xchat-gnome-0.30.0~git20141005.816798/src/fe-gnome/navigation-tree.c	2014-11-12 17:23:18.888662730 -0500
@@ -706,7 +706,7 @@
 {
 	ircnet *network = (ircnet *) sess->server->network;
 
-	if (network == NULL || network->autojoin == NULL || g_utf8_strlen ( network->autojoin , 0) == 0) {
+	if (network == NULL || network->autojoin == NULL || *network->autojoin == '\0') {
 		return FALSE;
 	}
 
