src/protocols/jabber/presence.c

changeset 10646
e5930d962239
parent 10558
da1cfd91fd94
child 10684
0325b164a7eb
--- a/src/protocols/jabber/presence.c	Mon Feb 28 18:18:22 2005 +0000
+++ b/src/protocols/jabber/presence.c	Tue Mar 01 21:15:58 2005 +0000
@@ -102,10 +102,13 @@
 
 	if(!account) return ;
 	gc = account->gc;
-
-	if(!gc) return ;
+	
+	if (!gc && strcmp(gaim_status_get_id(status), "offline"))
+		gaim_account_connect(account, status);
+	
+	if(!gc) return;
 	js= gc->proto_data;
-
+	
 	gaim_status_to_jabber(status, &state, &msg, &priority);
 
 	if(msg)

mercurial