diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-17 16:51:01 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-17 16:51:01 +0100 |
commit | 5c18a7632da2507ee9f8e63fafa46061163e3e3c (patch) | |
tree | 17e628684b403d537b24c5cbd5e0dc642d9283ba | |
parent | ffcdf1329ad0401ace5a0355160ac7c249869431 (diff) |
Store exact Twitter usernames for all Twitter contacts when using mode=chat,
so that xxx:->@xxx translation always works properly (even when the nick was
stripped/etc).
-rw-r--r-- | protocols/twitter/twitter_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 1bf5257c..620850ab 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -124,7 +124,12 @@ static void twitter_add_buddy(struct im_connection *ic, char *name, const char * imcb_add_buddy( ic, name, NULL ); imcb_rename_buddy( ic, name, fullname ); if (g_strcasecmp(mode, "chat") == 0) + { + /* Necessary so that nicks always get translated to the + exact Twitter username. */ + imcb_buddy_nick_hint( ic, name, name ); imcb_chat_add_buddy( td->home_timeline_gc, name ); + } else if (g_strcasecmp(mode, "many") == 0) imcb_buddy_status( ic, name, OPT_LOGGED_IN, NULL, NULL ); } |