Changeset 192b80a for protocols/jabber
- Timestamp:
- 2006-03-31T07:12:27Z (19 years ago)
- Branches:
- master
- Children:
- 755ae5b
- Parents:
- a014331
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
ra014331 r192b80a 1885 1885 } 1886 1886 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 1887 static void jabber_keepalive(struct gaim_connection *gc) { 1893 1888 struct jabber_data *jd = (struct jabber_data *)gc->proto_data; 1894 1889 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 1890 } 1904 1891 … … 2338 2325 } 2339 2326 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 2327 void jabber_init() 2356 2328 { 2357 2329 struct prpl *ret = g_new0(struct prpl, 1); 2358 2330 2359 /* the NULL's aren't required but they're nice to have */2360 2331 ret->name = "jabber"; 2361 2332 ret->away_states = jabber_away_states; 2362 ret->actions = jabber_actions;2363 2333 ret->login = jabber_login; 2364 2334 ret->close = jabber_close; … … 2368 2338 ret->set_away = jabber_set_away; 2369 2339 ret->get_away = jabber_get_away_msg; 2370 ret->set_idle = jabber_set_idle;2371 2340 ret->add_buddy = jabber_add_buddy; 2372 2341 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 2342 ret->keepalive = jabber_keepalive; 2379 ret->buddy_free = jabber_buddy_free;2380 2343 ret->alias_buddy = jabber_roster_update; 2381 2344 ret->group_buddy = jabber_group_change;
Note: See TracChangeset
for help on using the changeset viewer.