summaryrefslogtreecommitdiff
path: root/chat/gg2/patches/patch-ag
blob: c2c51d1ff552b2e737df0203811e7ca4d3c63a2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ag,v 1.2 2005/04/04 08:26:29 adam Exp $

--- src/plugins/jabber/jabber_plugin.c.orig	2005-03-06 23:29:02.000000000 +0000
+++ src/plugins/jabber/jabber_plugin.c
@@ -1484,9 +1484,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);
 	}