Changeset 601e813 for protocols/jabber/jabber.c
- Timestamp:
- 2006-05-24T23:04:18Z (19 years ago)
- Branches:
- master
- Children:
- 80c1e4d
- Parents:
- 46ad029 (diff), fc630f9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
r46ad029 r601e813 1045 1045 */ 1046 1046 if(find_buddy(GJ_GC(jap->gjc), jap->user) == NULL) { 1047 show_got_added(GJ_GC(jap->gjc), NULL, jap->user, NULL, NULL);1047 show_got_added(GJ_GC(jap->gjc), jap->user, NULL); 1048 1048 } 1049 1049 g_free(jap->user); … … 1232 1232 } 1233 1233 1234 x = jutil_presnew(0, NULL, "Online"); 1235 gjab_send(gjc, x); 1236 xmlnode_free(x); 1234 account_online(GJ_GC(gjc)); 1237 1235 } 1238 1236 … … 1250 1248 } else { 1251 1249 gjab_reqroster(gjc); 1252 account_online(GJ_GC(gjc));1253 1250 1254 1251 ((struct jabber_data *)GJ_GC(gjc)->proto_data)->did_import = TRUE; … … 1552 1549 if(jd->gjc != NULL) { 1553 1550 gjab_delete(jd->gjc); 1551 /* YAY for modules with their own memory pool managers!... 1554 1552 g_free(jd->gjc->sid); 1553 And a less sarcastic yay for valgrind. :-) */ 1555 1554 jd->gjc = NULL; 1556 1555 } … … 1888 1887 } 1889 1888 1890 static void jabber_set_idle(struct gaim_connection *gc, int idle) {1891 struct jabber_data *jd = (struct jabber_data *)gc->proto_data;1892 jd->idle = idle ? time(NULL) - idle : idle;1893 }1894 1895 1889 static void jabber_keepalive(struct gaim_connection *gc) { 1896 1890 struct jabber_data *jd = (struct jabber_data *)gc->proto_data; 1897 1891 gjab_send_raw(jd->gjc, " \t "); 1898 }1899 1900 static void jabber_buddy_free(struct buddy *b)1901 {1902 while (b->proto_data) {1903 g_free(((GSList *)b->proto_data)->data);1904 b->proto_data = g_slist_remove(b->proto_data, ((GSList *)b->proto_data)->data);1905 }1906 1892 } 1907 1893 … … 2341 2327 } 2342 2328 2343 2344 static GList *jabber_actions()2345 {2346 GList *m = NULL;2347 2348 m = g_list_append(m, _("Set User Info"));2349 /*2350 m = g_list_append(m, _("Set Dir Info"));2351 m = g_list_append(m, _("Change Password"));2352 */2353 2354 return m;2355 }2356 2357 2358 2329 void jabber_init() 2359 2330 { 2360 2331 struct prpl *ret = g_new0(struct prpl, 1); 2361 2332 2362 /* the NULL's aren't required but they're nice to have */2363 2333 ret->name = "jabber"; 2364 2334 ret->away_states = jabber_away_states; 2365 ret->actions = jabber_actions;2366 2335 ret->login = jabber_login; 2367 2336 ret->close = jabber_close; … … 2371 2340 ret->set_away = jabber_set_away; 2372 2341 ret->get_away = jabber_get_away_msg; 2373 ret->set_idle = jabber_set_idle;2374 2342 ret->add_buddy = jabber_add_buddy; 2375 2343 ret->remove_buddy = jabber_remove_buddy; 2376 ret->add_permit = NULL;2377 ret->add_deny = NULL;2378 ret->rem_permit = NULL;2379 ret->rem_deny = NULL;2380 ret->set_permit_deny = NULL;2381 2344 ret->keepalive = jabber_keepalive; 2382 ret->buddy_free = jabber_buddy_free;2383 2345 ret->alias_buddy = jabber_roster_update; 2384 2346 ret->group_buddy = jabber_group_change;
Note: See TracChangeset
for help on using the changeset viewer.