# HG changeset patch # User Jeffrey Connelly # Date 1181786038 0 # Node ID df93e87739816a782c912a44ad915144664c9e8d # Parent fc2ccac8d826a491035013bea70d1065d48ac455 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. diff -r fc2ccac8d826 -r df93e8773981 libpurple/protocols/myspace/myspace.c --- 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 */ diff -r fc2ccac8d826 -r df93e8773981 libpurple/protocols/myspace/myspace.h --- 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);