summaryrefslogtreecommitdiff
path: root/chat/gg2/patches/patch-ag
blob: 24bdb1bcaad938e64d2906b10bec3ff6cc218de3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ag,v 1.4 2005/09/07 12:41:12 adam Exp $

--- src/plugins/jabber/jabber_plugin.c.orig	2005-08-12 08:21:27.000000000 +0000
+++ src/plugins/jabber/jabber_plugin.c
@@ -1503,9 +1503,10 @@ void start_plugin()
 
 	if (ggadu_config_var_get(jabber_handler, "autoconnect"))
 	{
+		GGaduStatusPrototype *sp;
 		gint auto_status = (gint) ggadu_config_var_get(jabber_handler, "auto_status");
 		print_debug("jabber: autoconneting");
-		GGaduStatusPrototype *sp = ggadu_find_status_prototype(p, auto_status ? auto_status : JABBER_STATUS_AVAILABLE);
+		sp = ggadu_find_status_prototype(p, auto_status ? auto_status : JABBER_STATUS_AVAILABLE);
 		jabber_change_status(sp, FALSE);
 		GGaduStatusPrototype_free(sp);
 	}