diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-07 01:46:38 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-07 01:46:38 +0100 |
commit | 1014caba0ae2c737e35b8f51cafe77c1967e6b67 (patch) | |
tree | ee6c2522da315164253c287df71c020f9ac2083c /protocols/twitter/twitter_lib.c | |
parent | d5690197326bad1090dbb9f6bfc95470b479fe6b (diff) |
In groupchat mode, make contacts show up in the room instead of in &bitlbee.
And clean up the room when disabling the Twitter account.
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 50f614a7..3bcb59ca 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -97,12 +97,17 @@ static void txl_free(struct twitter_xml_list *txl) */ static void twitter_add_buddy(struct im_connection *ic, char *name) { + struct twitter_data *td = ic->proto_data; + // Check if the buddy is allready in the buddy list. if (!imcb_find_buddy( ic, name )) { // The buddy is not in the list, add the buddy and set the status to logged in. imcb_add_buddy( ic, name, NULL ); - imcb_buddy_status( ic, name, OPT_LOGGED_IN, NULL, NULL ); + if (set_getbool( &ic->acc->set, "use_groupchat" )) + imcb_chat_add_buddy( td->home_timeline_gc, name ); + else + imcb_buddy_status( ic, name, OPT_LOGGED_IN, NULL, NULL ); } } |