changeset 354:ff078879e68e

include in_reply_to information to the internal tag even in posting message
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 18 May 2010 00:12:59 +0900
parents 29084c253e68
children 0fe895195132
files twitter_api.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/twitter_api.c	Fri Apr 16 12:28:22 2010 +0900
+++ b/twitter_api.c	Tue May 18 00:12:59 2010 +0900
@@ -278,7 +278,8 @@
              PurpleMessageFlags flag = PURPLE_MESSAGE_RECV;
 
              msg = g_strdup_printf("%s: %s pttag=%llu:%llu:%s",
-                                   st->screen_name, st->text,
+                                   st->screen_name,
+                                   st->text,
                                    (long long unsigned int)st->id,
                                    (long long unsigned int)st->in_reply_to_status_id,
                                    st->in_reply_to_screen_name ? st->in_reply_to_screen_name : "");
@@ -471,9 +472,11 @@
         xmlFreeDoc(doc);
         xmlCleanupParser();
 
-        m = g_strdup_printf("%s pttag=%llu:0:",
+        m = g_strdup_printf("%s pttag=%llu:%llu:%s",
                             tm->status,
-                            (long long unsigned int)st->id);
+                            (long long unsigned int)st->id,
+                            (long long unsigned int)st->in_reply_to_status_id,
+                            st->in_reply_to_screen_name ? st->in_reply_to_screen_name : "");
 
         purple_conv_im_write(conv->u.im,
                              purple_account_get_username(tm->account),