Notify the user if a message is not sent in a conversation because he's disconnected.

Thu, 23 Aug 2007 06:00:37 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Thu, 23 Aug 2007 06:00:37 +0000
changeset 19550
f8bf99d51cee
parent 19549
7f015f13e602
child 19551
ed1561e17dd7

Notify the user if a message is not sent in a conversation because he's disconnected.

finch/gntconv.c file | annotate | diff | comparison | revisions
--- a/finch/gntconv.c	Thu Aug 23 05:59:26 2007 +0000
+++ b/finch/gntconv.c	Thu Aug 23 06:00:37 2007 +0000
@@ -142,6 +142,11 @@
 			}
 			g_free(error);
 		}
+		else if (!purple_account_is_connected(ggconv->active_conv->account))
+		{
+			purple_conversation_write(ggconv->active_conv, "", _("Message was not sent, because you are not signed on."),
+					PURPLE_MESSAGE_ERROR | PURPLE_MESSAGE_NO_LOG, time(NULL));
+		}
 		else
 		{
 			char *escape = g_markup_escape_text(text, -1);

mercurial