Ignore:
Timestamp:
2006-05-24T23:04:18Z (19 years ago)
Author:
Jelmer Vernooij <jelmer@…>
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.
Message:

[merge] Wilmer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    r46ad029 r601e813  
    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);
     
    12321232        }
    12331233
    1234         x = jutil_presnew(0, NULL, "Online");
    1235         gjab_send(gjc, x);
    1236         xmlnode_free(x);
     1234        account_online(GJ_GC(gjc));
    12371235}
    12381236
     
    12501248                } else {
    12511249                        gjab_reqroster(gjc);
    1252                         account_online(GJ_GC(gjc));
    12531250                       
    12541251                        ((struct jabber_data *)GJ_GC(gjc)->proto_data)->did_import = TRUE;
     
    15521549        if(jd->gjc != NULL) {
    15531550                gjab_delete(jd->gjc);
     1551                /* YAY for modules with their own memory pool managers!...
    15541552                g_free(jd->gjc->sid);
     1553                And a less sarcastic yay for valgrind. :-) */
    15551554                jd->gjc = NULL;
    15561555        }
     
    18881887}
    18891888
    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 
    18951889static void jabber_keepalive(struct gaim_connection *gc) {
    18961890        struct jabber_data *jd = (struct jabber_data *)gc->proto_data;
    18971891        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         }
    19061892}
    19071893
     
    23412327}
    23422328
    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 
    23582329void jabber_init()
    23592330{
    23602331        struct prpl *ret = g_new0(struct prpl, 1);
    23612332
    2362         /* the NULL's aren't required but they're nice to have */
    23632333        ret->name = "jabber";
    23642334        ret->away_states = jabber_away_states;
    2365         ret->actions = jabber_actions;
    23662335        ret->login = jabber_login;
    23672336        ret->close = jabber_close;
     
    23712340        ret->set_away = jabber_set_away;
    23722341        ret->get_away = jabber_get_away_msg;
    2373         ret->set_idle = jabber_set_idle;
    23742342        ret->add_buddy = jabber_add_buddy;
    23752343        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;
    23812344        ret->keepalive = jabber_keepalive;
    2382         ret->buddy_free = jabber_buddy_free;
    23832345        ret->alias_buddy = jabber_roster_update;
    23842346        ret->group_buddy = jabber_group_change;
Note: See TracChangeset for help on using the changeset viewer.