Mercurial > pidgin.yaz
changeset 17381:df93e8773981
Add msim_offline_message() for offline message status. Always return TRUE,
though offline messages are not yet supported. Mainly for sending to users
whose status has not been retrieved yet.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Thu, 14 Jun 2007 01:53:58 +0000 |
parents | fc2ccac8d826 |
children | 1a26b36889dc |
files | libpurple/protocols/myspace/myspace.c libpurple/protocols/myspace/myspace.h |
diffstat | 2 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Thu Jun 14 01:33:49 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Thu Jun 14 01:53:58 2007 +0000 @@ -1536,6 +1536,16 @@ /* TODO: update blocklist */ } +/** Return whether the buddy can be messaged while offline. + * + * I always return TRUE, to allow sending to buddies whose status has not yet + * been received. The protocol _does_ support offline messages, but not this plugin. + * TODO: Real offline message support. + */ +gboolean msim_offline_message(const PurpleBuddy *buddy) +{ + return TRUE; +} /** @@ -2061,7 +2071,7 @@ NULL, /* can_receive_file */ NULL, /* send_file */ NULL, /* new_xfer */ - NULL, /* offline_message */ + msim_offline_message, /* offline_message */ NULL, /* whiteboard_prpl_ops */ NULL, /* send_raw */ NULL, /* roomlist_room_serialize */
--- a/libpurple/protocols/myspace/myspace.h Thu Jun 14 01:33:49 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.h Thu Jun 14 01:53:58 2007 +0000 @@ -184,6 +184,8 @@ void msim_add_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group); void msim_remove_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group); +gboolean msim_offline_message(const PurpleBuddy *buddy); + void msim_input_cb(gpointer gc_uncasted, gint source, PurpleInputCondition cond);