Changeset 1014cab


Ignore:
Timestamp:
2010-04-07T00:46:38Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
123cac7
Parents:
d569019
Message:

In groupchat mode, make contacts show up in the room instead of in &bitlbee.
And clean up the room when disabling the Twitter account.

Location:
protocols/twitter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    rd569019 r1014cab  
    100100        // Remove the main_loop function from the function queue.
    101101        b_event_remove(td->main_loop_id);
     102
     103        imcb_chat_free(td->home_timeline_gc);
    102104
    103105        if( td )
  • protocols/twitter/twitter_lib.c

    rd569019 r1014cab  
    9898static void twitter_add_buddy(struct im_connection *ic, char *name)
    9999{
     100        struct twitter_data *td = ic->proto_data;
     101
    100102        // Check if the buddy is allready in the buddy list.
    101103        if (!imcb_find_buddy( ic, name ))
     
    103105                // The buddy is not in the list, add the buddy and set the status to logged in.
    104106                imcb_add_buddy( ic, name, NULL );
    105                 imcb_buddy_status( ic, name, OPT_LOGGED_IN, NULL, NULL );
     107                if (set_getbool( &ic->acc->set, "use_groupchat" ))
     108                        imcb_chat_add_buddy( td->home_timeline_gc, name );
     109                else
     110                        imcb_buddy_status( ic, name, OPT_LOGGED_IN, NULL, NULL );
    106111        }
    107112}
Note: See TracChangeset for help on using the changeset viewer.