Mercurial > pidgin
comparison libpurple/protocols/msn/msn.c @ 16837:133932a97faa
Make MSN mobile buddies offline, mobile, and offline-messagable. Fixes #215
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 04 May 2007 03:48:12 +0000 |
parents | a338acd14365 |
children | 680b5910933b |
comparison
equal
deleted
inserted
replaced
16836:504613f178a0 | 16837:133932a97faa |
---|---|
364 NULL, TRUE, FALSE, NULL, | 364 NULL, TRUE, FALSE, NULL, |
365 _("Page"), G_CALLBACK(send_to_mobile_cb), | 365 _("Page"), G_CALLBACK(send_to_mobile_cb), |
366 _("Close"), G_CALLBACK(close_mobile_page_cb), | 366 _("Close"), G_CALLBACK(close_mobile_page_cb), |
367 purple_connection_get_account(gc), purple_buddy_get_name(buddy), NULL, | 367 purple_connection_get_account(gc), purple_buddy_get_name(buddy), NULL, |
368 data); | 368 data); |
369 } | |
370 | |
371 static gboolean | |
372 msn_offline_message(const PurpleBuddy *buddy) { | |
373 if (buddy == NULL) | |
374 return FALSE; | |
375 MsnUser *user = buddy->proto_data; | |
376 return user && user->mobile; | |
369 } | 377 } |
370 | 378 |
371 static void | 379 static void |
372 initiate_chat_cb(PurpleBlistNode *node, gpointer data) | 380 initiate_chat_cb(PurpleBlistNode *node, gpointer data) |
373 { | 381 { |
2063 NULL, /* roomlist_cancel */ | 2071 NULL, /* roomlist_cancel */ |
2064 NULL, /* roomlist_expand_category */ | 2072 NULL, /* roomlist_expand_category */ |
2065 msn_can_receive_file, /* can_receive_file */ | 2073 msn_can_receive_file, /* can_receive_file */ |
2066 msn_send_file, /* send_file */ | 2074 msn_send_file, /* send_file */ |
2067 msn_new_xfer, /* new_xfer */ | 2075 msn_new_xfer, /* new_xfer */ |
2068 NULL, /* offline_message */ | 2076 msn_offline_message, /* offline_message */ |
2069 NULL, /* whiteboard_prpl_ops */ | 2077 NULL, /* whiteboard_prpl_ops */ |
2070 NULL, /* send_raw */ | 2078 NULL, /* send_raw */ |
2071 NULL, /* roomlist_room_serialize */ | 2079 NULL, /* roomlist_room_serialize */ |
2072 | 2080 |
2073 /* padding */ | 2081 /* padding */ |