Changes in protocols/jabber/jabber.c [027d2eb:a252c1a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
r027d2eb ra252c1a 155 155 #define JCS_CLOSED 3 /* closed */ 156 156 157 158 static char *jabber_name()159 {160 return "Jabber";161 }162 157 163 158 #define STATE_EVT(arg) if(gjc->on_state) { (gjc->on_state)(gjc, (arg) ); } … … 1254 1249 gjab_auth(gjc); 1255 1250 } else { 1251 gjab_reqroster(gjc); 1256 1252 account_online(GJ_GC(gjc)); 1257 1258 if (bud_list_cache_exists(GJ_GC(gjc))) 1259 do_import(GJ_GC(gjc), NULL); 1260 1253 1261 1254 ((struct jabber_data *)GJ_GC(gjc)->proto_data)->did_import = TRUE; 1262 1263 gjab_reqroster(gjc);1264 1255 } 1265 1256 } else { … … 1865 1856 xmlnode_insert_cdata(y, "away", -1); 1866 1857 y = xmlnode_insert_tag(x, "status"); 1867 { 1868 char *utf8 = str_to_utf8(message); 1869 xmlnode_insert_cdata(y, utf8, -1); 1870 g_free(utf8); 1871 } 1858 xmlnode_insert_cdata(y, message, -1); 1872 1859 gc->away = ""; 1873 1860 } else { … … 2368 2355 } 2369 2356 2370 static struct prpl *my_protocol = NULL; 2371 2372 void jabber_init(struct prpl *ret) 2373 { 2357 2358 void jabber_init() 2359 { 2360 struct prpl *ret = g_new0(struct prpl, 1); 2361 2374 2362 /* the NULL's aren't required but they're nice to have */ 2375 ret->protocol = PROTO_JABBER; 2376 ret->name = jabber_name; 2363 ret->name = "jabber"; 2377 2364 ret->away_states = jabber_away_states; 2378 2365 ret->actions = jabber_actions; … … 2398 2385 ret->cmp_buddynames = g_strcasecmp; 2399 2386 2400 my_protocol = ret;2401 } 2387 register_protocol (ret); 2388 }
Note: See TracChangeset
for help on using the changeset viewer.