/soc/2015/jgeboski/facebook: 0bd9b2c3f5b7: facebook: only show "...
James Geboski
jgeboski at gmail.com
Tue Jun 30 15:02:11 EDT 2015
Changeset: 0bd9b2c3f5b7b5763ccaeca427fcdeae06cc4111
Author: James Geboski <jgeboski at gmail.com>
Date: 2015-06-30 14:45 -0400
Branch: facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/0bd9b2c3f5b7
Description:
facebook: only show "Initiate Chat" with buddies
diffstat:
libpurple/protocols/facebook/facebook.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (25 lines):
diff --git a/libpurple/protocols/facebook/facebook.c b/libpurple/protocols/facebook/facebook.c
--- a/libpurple/protocols/facebook/facebook.c
+++ b/libpurple/protocols/facebook/facebook.c
@@ -390,6 +390,10 @@ fb_blist_chat_init(PurpleBlistNode *node
GSList *select = NULL;
PurpleConnection *gc;
+ if (G_OBJECT_TYPE(node) != PURPLE_TYPE_BUDDY) {
+ return;
+ }
+
gc = fb_data_get_connection(fata);
select = g_slist_prepend(select, PURPLE_BUDDY(node));
@@ -526,6 +530,10 @@ fb_client_blist_node_menu(PurpleBlistNod
PurpleConnection *gc;
PurpleMenuAction *act;
+ if (G_OBJECT_TYPE(node) != PURPLE_TYPE_BUDDY) {
+ return NULL;
+ }
+
acct = purple_buddy_get_account(PURPLE_BUDDY(node));
gc = purple_account_get_connection(acct);
fata = purple_connection_get_protocol_data(gc);
More information about the Commits
mailing list