libpurple/plugins/offlinemsg.c

branch
release-2.x.y
changeset 40915
c354aa148fd5
parent 31294
73607ab89c6f
--- a/libpurple/plugins/offlinemsg.c	Tue Jun 01 22:18:49 2021 -0500
+++ b/libpurple/plugins/offlinemsg.c	Tue Jun 01 22:19:45 2021 -0500
@@ -148,10 +148,9 @@
 	offline->message = *message;
 	*message = NULL;
 
-	if (purple_prefs_get_bool(PREF_ALWAYS) || setting == OFFLINE_MSG_YES)
+	if (purple_prefs_get_bool(PREF_ALWAYS) || setting == OFFLINE_MSG_YES) {
 		record_pounce(offline);
-	else if (setting == OFFLINE_MSG_NONE)
-	{
+	} else if (setting == OFFLINE_MSG_NONE) {
 		char *ask;
 		ask = g_strdup_printf(_("\"%s\" is currently offline. Do you want to save the "
 						"rest of the messages in a pounce and automatically send them "
@@ -165,6 +164,8 @@
 					_("Yes"), record_pounce,
 					_("No"), cancel_poune);
 		g_free(ask);
+	} else {
+		discard_data(offline);
 	}
 }
 

mercurial