comparison libpurple/protocols/jabber/libfacebook.c @ 32710:a677e7b1497f

Facebook does not support various XMPP extensions that we do. Disable roster changes, FT, attention, and VV.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 29 Dec 2011 07:33:57 +0000
parents ef4ffed09e49
children
comparison
equal deleted inserted replaced
32709:e7441440bed5 32710:a677e7b1497f
83 jabber_send_typing, /* send_typing */ 83 jabber_send_typing, /* send_typing */
84 jabber_buddy_get_info, /* get_info */ 84 jabber_buddy_get_info, /* get_info */
85 jabber_set_status, /* set_status */ 85 jabber_set_status, /* set_status */
86 jabber_idle_set, /* set_idle */ 86 jabber_idle_set, /* set_idle */
87 NULL, /* change_passwd */ 87 NULL, /* change_passwd */
88 jabber_roster_add_buddy, /* add_buddy */ 88 NULL, /* add_buddy */
89 NULL, /* add_buddies */ 89 NULL, /* add_buddies */
90 jabber_roster_remove_buddy, /* remove_buddy */ 90 NULL, /* remove_buddy */
91 NULL, /* remove_buddies */ 91 NULL, /* remove_buddies */
92 NULL, /* add_permit */ 92 NULL, /* add_permit */
93 jabber_add_deny, /* add_deny */ 93 NULL, /* add_deny */
94 NULL, /* rem_permit */ 94 NULL, /* rem_permit */
95 jabber_rem_deny, /* rem_deny */ 95 NULL, /* rem_deny */
96 NULL, /* set_permit_deny */ 96 NULL, /* set_permit_deny */
97 jabber_chat_join, /* join_chat */ 97 jabber_chat_join, /* join_chat */
98 NULL, /* reject_chat */ 98 NULL, /* reject_chat */
99 jabber_get_chat_name, /* get_chat_name */ 99 jabber_get_chat_name, /* get_chat_name */
100 jabber_chat_invite, /* chat_invite */ 100 jabber_chat_invite, /* chat_invite */
102 NULL, /* chat_whisper */ 102 NULL, /* chat_whisper */
103 jabber_message_send_chat, /* chat_send */ 103 jabber_message_send_chat, /* chat_send */
104 jabber_keepalive, /* keepalive */ 104 jabber_keepalive, /* keepalive */
105 NULL, /* register_user */ 105 NULL, /* register_user */
106 NULL, /* get_cb_info */ 106 NULL, /* get_cb_info */
107 jabber_roster_alias_change, /* alias_buddy */ 107 NULL, /* alias_buddy */
108 jabber_roster_group_change, /* group_buddy */ 108 NULL, /* group_buddy */
109 jabber_roster_group_rename, /* rename_group */ 109 NULL, /* rename_group */
110 NULL, /* buddy_free */ 110 NULL, /* buddy_free */
111 jabber_convo_closed, /* convo_closed */ 111 jabber_convo_closed, /* convo_closed */
112 jabber_normalize, /* normalize */ 112 jabber_normalize, /* normalize */
113 jabber_set_buddy_icon, /* set_buddy_icon */ 113 jabber_set_buddy_icon, /* set_buddy_icon */
114 NULL, /* remove_group */ 114 NULL, /* remove_group */
116 jabber_chat_set_topic, /* set_chat_topic */ 116 jabber_chat_set_topic, /* set_chat_topic */
117 jabber_find_blist_chat, /* find_blist_chat */ 117 jabber_find_blist_chat, /* find_blist_chat */
118 jabber_roomlist_get_list, /* roomlist_get_list */ 118 jabber_roomlist_get_list, /* roomlist_get_list */
119 jabber_roomlist_cancel, /* roomlist_cancel */ 119 jabber_roomlist_cancel, /* roomlist_cancel */
120 NULL, /* roomlist_expand_category */ 120 NULL, /* roomlist_expand_category */
121 jabber_can_receive_file, /* can_receive_file */ 121 NULL, /* can_receive_file */
122 jabber_si_xfer_send, /* send_file */ 122 NULL, /* send_file */
123 jabber_si_new_xfer, /* new_xfer */ 123 NULL, /* new_xfer */
124 jabber_offline_message, /* offline_message */ 124 jabber_offline_message, /* offline_message */
125 NULL, /* whiteboard_prpl_ops */ 125 NULL, /* whiteboard_prpl_ops */
126 jabber_prpl_send_raw, /* send_raw */ 126 jabber_prpl_send_raw, /* send_raw */
127 jabber_roomlist_room_serialize, /* roomlist_room_serialize */ 127 jabber_roomlist_room_serialize, /* roomlist_room_serialize */
128 NULL, /* unregister_user */ 128 NULL, /* unregister_user */
129 jabber_send_attention, /* send_attention */ 129 NULL, /* send_attention */
130 jabber_attention_types, /* attention_types */ 130 NULL, /* attention_types */
131 NULL, /* get_account_text_table */ 131 NULL, /* get_account_text_table */
132 jabber_initiate_media, /* initiate_media */ 132 NULL, /* initiate_media */
133 jabber_get_media_caps, /* get_media_caps */ 133 NULL, /* get_media_caps */
134 jabber_get_moods, /* get_moods */ 134 NULL, /* get_moods */
135 NULL, /* set_public_alias */ 135 NULL, /* set_public_alias */
136 NULL /* get_public_alias */ 136 NULL /* get_public_alias */
137 }; 137 };
138 138
139 static gboolean load_plugin(PurplePlugin *plugin) 139 static gboolean load_plugin(PurplePlugin *plugin)
302 option = purple_account_option_string_new(_("Connect server"), 302 option = purple_account_option_string_new(_("Connect server"),
303 "connect_server", NULL); 303 "connect_server", NULL);
304 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, 304 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,
305 option); 305 option);
306 306
307 option = purple_account_option_string_new(_("File transfer proxies"),
308 "ft_proxies",
309 /* TODO: Is this an acceptable default?
310 * Also, keep this in sync as they add more servers */
311 JABBER_DEFAULT_FT_PROXIES);
312 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,
313 option);
314
315 option = purple_account_option_string_new(_("BOSH URL"), 307 option = purple_account_option_string_new(_("BOSH URL"),
316 "bosh_url", NULL); 308 "bosh_url", NULL);
317 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, 309 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,
318 option); 310 option);
319 311