diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-09 01:40:38 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-09 01:40:38 +0100 |
commit | cca06921729ecd1ab4beaecfef001a218e5d0010 (patch) | |
tree | 77902d63f4a73535ea942b149e2428a345f8ca32 /protocols/twitter/twitter_lib.c | |
parent | 7a90d02eede836f60a119cf516b145c8bf601d3c (diff) |
Added imcb_chat_nick_hint() and use it in the Twitter module to get saner
channel names.
This also closes bug #577, making the Skype module a bit nicer.
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 9ca4ead6..93f71f3b 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -406,7 +406,10 @@ static void twitter_groupchat(struct im_connection *ic, GSList *list) // Create a new groupchat if it does not exsist. if (!td->home_timeline_gc) { + char *name_hint = g_strdup_printf( "Twitter_%s", ic->acc->user ); td->home_timeline_gc = gc = imcb_chat_new( ic, "home/timeline" ); + imcb_chat_name_hint( gc, name_hint ); + g_free( name_hint ); // Add the current user to the chat... imcb_chat_add_buddy( gc, ic->acc->user ); } |