src/protocols/jabber/presence.c

changeset 10646
e5930d962239
parent 10558
da1cfd91fd94
child 10684
0325b164a7eb
equal deleted inserted replaced
10645:f00e65bebc8b 10646:e5930d962239
100 if(!gaim_status_is_active(status)) 100 if(!gaim_status_is_active(status))
101 return; 101 return;
102 102
103 if(!account) return ; 103 if(!account) return ;
104 gc = account->gc; 104 gc = account->gc;
105 105
106 if(!gc) return ; 106 if (!gc && strcmp(gaim_status_get_id(status), "offline"))
107 gaim_account_connect(account, status);
108
109 if(!gc) return;
107 js= gc->proto_data; 110 js= gc->proto_data;
108 111
109 gaim_status_to_jabber(status, &state, &msg, &priority); 112 gaim_status_to_jabber(status, &state, &msg, &priority);
110 113
111 if(msg) 114 if(msg)
112 gaim_markup_html_to_xhtml(msg, NULL, &stripped); 115 gaim_markup_html_to_xhtml(msg, NULL, &stripped);
113 116

mercurial