| 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 |