Changeset 9779c18 for protocols/jabber/jabber.c
- Timestamp:
- 2006-06-03T20:20:43Z (18 years ago)
- Branches:
- master
- Children:
- 5973412
- Parents:
- a15c097 (diff), fb62f81f (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
ra15c097 r9779c18 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); … … 1549 1549 if(jd->gjc != NULL) { 1550 1550 gjab_delete(jd->gjc); 1551 /* YAY for modules with their own memory pool managers!... 1551 1552 g_free(jd->gjc->sid); 1553 And a less sarcastic yay for valgrind. :-) */ 1552 1554 jd->gjc = NULL; 1553 1555 } … … 1885 1887 } 1886 1888 1887 static void jabber_set_idle(struct gaim_connection *gc, int idle) {1888 struct jabber_data *jd = (struct jabber_data *)gc->proto_data;1889 jd->idle = idle ? time(NULL) - idle : idle;1890 }1891 1892 1889 static void jabber_keepalive(struct gaim_connection *gc) { 1893 1890 struct jabber_data *jd = (struct jabber_data *)gc->proto_data; 1894 1891 gjab_send_raw(jd->gjc, " \t "); 1895 }1896 1897 static void jabber_buddy_free(struct buddy *b)1898 {1899 while (b->proto_data) {1900 g_free(((GSList *)b->proto_data)->data);1901 b->proto_data = g_slist_remove(b->proto_data, ((GSList *)b->proto_data)->data);1902 }1903 1892 } 1904 1893 … … 2338 2327 } 2339 2328 2340 2341 static GList *jabber_actions()2342 {2343 GList *m = NULL;2344 2345 m = g_list_append(m, _("Set User Info"));2346 /*2347 m = g_list_append(m, _("Set Dir Info"));2348 m = g_list_append(m, _("Change Password"));2349 */2350 2351 return m;2352 }2353 2354 2355 2329 void jabber_init() 2356 2330 { 2357 2331 struct prpl *ret = g_new0(struct prpl, 1); 2358 2332 2359 /* the NULL's aren't required but they're nice to have */2360 2333 ret->name = "jabber"; 2361 2334 ret->away_states = jabber_away_states; 2362 ret->actions = jabber_actions;2363 2335 ret->login = jabber_login; 2364 2336 ret->close = jabber_close; … … 2368 2340 ret->set_away = jabber_set_away; 2369 2341 ret->get_away = jabber_get_away_msg; 2370 ret->set_idle = jabber_set_idle;2371 2342 ret->add_buddy = jabber_add_buddy; 2372 2343 ret->remove_buddy = jabber_remove_buddy; 2373 ret->add_permit = NULL;2374 ret->add_deny = NULL;2375 ret->rem_permit = NULL;2376 ret->rem_deny = NULL;2377 ret->set_permit_deny = NULL;2378 2344 ret->keepalive = jabber_keepalive; 2379 ret->buddy_free = jabber_buddy_free;2380 2345 ret->alias_buddy = jabber_roster_update; 2381 2346 ret->group_buddy = jabber_group_change;
Note: See TracChangeset
for help on using the changeset viewer.