# HG changeset patch # User Mark Doliner # Date 1333229333 0 # Node ID 5b79a5b726891ee883b0e87e17b561110a5a66d7 # Parent 5ca6bba28a0422173ddc07beec9d1fe2aa9aa25e The Offline Message Emulation plugin now adds a note that the message was an offline message. (Flavius Anton) (fixes #2497) diff -r 5ca6bba28a04 -r 5b79a5b72689 COPYRIGHT --- a/COPYRIGHT Thu Mar 15 04:25:32 2012 +0000 +++ b/COPYRIGHT Sat Mar 31 21:28:53 2012 +0000 @@ -24,6 +24,7 @@ Manuel Amador Matt Amato Josef Andrysek +Flavius Anton Geoffrey Antos Daniel Atallah Paul Aurich diff -r 5ca6bba28a04 -r 5b79a5b72689 ChangeLog --- a/ChangeLog Thu Mar 15 04:25:32 2012 +0000 +++ b/ChangeLog Sat Mar 31 21:28:53 2012 +0000 @@ -42,7 +42,9 @@ Plugins: * The Voice/Video Settings plugin supports using the sndio GStreamer - backends. (Brad Smith) (#14414) + backends. (Brad Smith) (#14414) + * The Offline Message Emulation plugin now adds a note that the message + was an offline message. (Flavius Anton) (#2497) version 2.10.2 (02/22/2012): General: diff -r 5ca6bba28a04 -r 5b79a5b72689 libpurple/plugins/offlinemsg.c --- a/libpurple/plugins/offlinemsg.c Thu Mar 15 04:25:32 2012 +0000 +++ b/libpurple/plugins/offlinemsg.c Sat Mar 31 21:28:53 2012 +0000 @@ -80,6 +80,7 @@ PurplePounceEvent event; PurplePounceOption option; PurpleConversation *conv; + char *temp; event = PURPLE_POUNCE_SIGNON; option = PURPLE_POUNCE_OPTION_NONE; @@ -88,7 +89,12 @@ event, option); purple_pounce_action_set_enabled(pounce, "send-message", TRUE); - purple_pounce_action_set_attribute(pounce, "send-message", "message", offline->message); + + temp = g_strdup_printf("(%s) %s", _("Offline message"), + offline->message); + purple_pounce_action_set_attribute(pounce, "send-message", "message", + temp); + g_free(temp); conv = offline->conv; if (!purple_conversation_get_data(conv, "plugin_pack:offlinemsg"))