[PATCH 2/2] Ignoring "Has You" and "You're not in friend contact list" informations.

0 views
Skip to first unread message

Demétrio

unread,
Jan 7, 2011, 4:13:56 PM1/7/11
to msn-...@googlegroups.com, Demétrio
---
msn.c | 3 ---
session.c | 11 -----------
2 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/msn.c b/msn.c
index 1b657fd..1e6ae10 100644
--- a/msn.c
+++ b/msn.c
@@ -731,9 +731,6 @@ tooltip_text (PurpleBuddy *buddy,
}
}

- //Server bug, looks like they won't fix it
- //purple_notify_user_info_add_pair (user_info, _("Has you"),
- // ((user->list_op & (1 << MSN_LIST_RL)) ? _("Yes") : _("No")));
}

purple_notify_user_info_add_pair (user_info, _("Blocked"),
diff --git a/session.c b/session.c
index 25d1435..9a3282f 100644
--- a/session.c
+++ b/session.c
@@ -48,7 +48,6 @@
static void
conversation_created_cb (PurpleConversation *conv, gpointer data)
{
- gchar *str;
const gchar *tmp_user, *friendly_name;
MsnSession *session = data;
struct pn_contact *contact;
@@ -61,16 +60,6 @@ conversation_created_cb (PurpleConversation *conv, gpointer data)
friendly_name = tmp_user;
if (!friendly_name)
friendly_name = tmp_user;
-
- if (contact && !(contact->list_op & (1 << MSN_LIST_RL)))
- {
- //Server bug, it's see they won't fix.
- //str = g_strdup_printf (_("You are not in %s's contact list."), friendly_name);
-
- purple_conversation_write (conv, NULL, str, PURPLE_MESSAGE_SYSTEM | PURPLE_MESSAGE_NOTIFY, time (NULL));
-
- g_free (str);
- }
}

#ifdef INTERNAL_MAINLOOP
--
1.7.2.2

Demétrio

unread,
Jan 7, 2011, 4:13:55 PM1/7/11
to msn-...@googlegroups.com, Demétrio
---
msn.c | 7 ++++---
session.c | 3 ++-
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/msn.c b/msn.c
index cbd210d..1b657fd 100644
--- a/msn.c
+++ b/msn.c
@@ -730,9 +730,10 @@ tooltip_text (PurpleBuddy *buddy,
purple_notify_user_info_add_pair (user_info, _("Working"), user->media.title);
}
}
-
- purple_notify_user_info_add_pair (user_info, _("Has you"),
- ((user->list_op & (1 << MSN_LIST_RL)) ? _("Yes") : _("No")));
+
+ //Server bug, looks like they won't fix it
+ //purple_notify_user_info_add_pair (user_info, _("Has you"),
+ // ((user->list_op & (1 << MSN_LIST_RL)) ? _("Yes") : _("No")));


}

purple_notify_user_info_add_pair (user_info, _("Blocked"),
diff --git a/session.c b/session.c

index eeb9b39..25d1435 100644
--- a/session.c
+++ b/session.c
@@ -64,7 +64,8 @@ conversation_created_cb (PurpleConversation *conv, gpointer data)



if (contact && !(contact->list_op & (1 << MSN_LIST_RL)))
{

- str = g_strdup_printf (_("You are not in %s's contact list."), friendly_name);
+ //Server bug, it's see they won't fix.
+ //str = g_strdup_printf (_("You are not in %s's contact list."), friendly_name);



purple_conversation_write (conv, NULL, str, PURPLE_MESSAGE_SYSTEM | PURPLE_MESSAGE_NOTIFY, time (NULL));

--

1.7.2.2

Reply all
Reply to author
Forward
0 new messages