changeset 52:ac1259fde1d0

due to adaptation to msn style, username of sender has been carried down by one.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Thu, 15 May 2008 23:57:02 +0900
parents d5f251b37f6b
children 872f418ba45d 8e1c8afac4dd
files pidgin-twitter.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-twitter.c	Thu May 15 21:44:53 2008 +0900
+++ b/pidgin-twitter.c	Thu May 15 23:57:02 2008 +0900
@@ -408,7 +408,11 @@
 
     g_regex_match(regp[which], *str, 0, &match_info);
     while(g_match_info_matches(match_info)) {
-        gchar *user = g_match_info_fetch(match_info, 1);
+        gchar *user = NULL;
+        if(which == RECIPIENT)
+            user = g_match_info_fetch(match_info, 1);
+        else if(which == SENDER)
+            user = g_match_info_fetch(match_info, 2);
         twitter_debug("user = %s\n", user);
 
         for(candidate = candidates; *candidate; candidate++) {