Ignore:
Timestamp:
2006-06-03T20:20:43Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
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.
Message:

[merge] Wilmer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    ra15c097 r9779c18  
    10451045         */
    10461046        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);
    10481048        }
    10491049        g_free(jap->user);
     
    15491549        if(jd->gjc != NULL) {
    15501550                gjab_delete(jd->gjc);
     1551                /* YAY for modules with their own memory pool managers!...
    15511552                g_free(jd->gjc->sid);
     1553                And a less sarcastic yay for valgrind. :-) */
    15521554                jd->gjc = NULL;
    15531555        }
     
    18851887}
    18861888
    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 
    18921889static void jabber_keepalive(struct gaim_connection *gc) {
    18931890        struct jabber_data *jd = (struct jabber_data *)gc->proto_data;
    18941891        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         }
    19031892}
    19041893
     
    23382327}
    23392328
    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 
    23552329void jabber_init()
    23562330{
    23572331        struct prpl *ret = g_new0(struct prpl, 1);
    23582332
    2359         /* the NULL's aren't required but they're nice to have */
    23602333        ret->name = "jabber";
    23612334        ret->away_states = jabber_away_states;
    2362         ret->actions = jabber_actions;
    23632335        ret->login = jabber_login;
    23642336        ret->close = jabber_close;
     
    23682340        ret->set_away = jabber_set_away;
    23692341        ret->get_away = jabber_get_away_msg;
    2370         ret->set_idle = jabber_set_idle;
    23712342        ret->add_buddy = jabber_add_buddy;
    23722343        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;
    23782344        ret->keepalive = jabber_keepalive;
    2379         ret->buddy_free = jabber_buddy_free;
    23802345        ret->alias_buddy = jabber_roster_update;
    23812346        ret->group_buddy = jabber_group_change;
Note: See TracChangeset for help on using the changeset viewer.