Mercurial > pidgin-twitter
diff pidgin-twitter.c @ 73:08bd4abdfd3d
Now your own icon is shown on the conversation window.
author | Konosuke Watanabe <sasugaanija@gmail.com> |
---|---|
date | Sat, 28 Jun 2008 00:08:57 +0900 |
parents | af4f31bce461 |
children | 6b9593d1ffed |
line wrap: on
line diff
--- a/pidgin-twitter.c Thu Jun 26 01:22:42 2008 +0900 +++ b/pidgin-twitter.c Sat Jun 28 00:08:57 2008 +0900 @@ -351,9 +351,18 @@ } if (!error) { + gchar *m = NULL; + const char *screen_name = purple_prefs_get_string(OPT_SCREEN_NAME); + if (screen_name) + m = g_strdup_printf("%s: %s", screen_name, tm->status); + else + m = ""; + purple_conv_im_write(conv->u.im, purple_account_get_username(tm->account), - tm->status, PURPLE_MESSAGE_SEND, tm->time); + m, PURPLE_MESSAGE_SEND, tm->time); + + g_free(m); } else { gchar *m; m = g_strdup_printf("%s<BR>%s",