Mercurial > pidgin
comparison finch/gntconv.c @ 19370:9c03677be7c5
Notify the user if a message is not sent in a conversation because he's disconnected.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 23 Aug 2007 06:00:37 +0000 |
parents | 39d3a81a5850 |
children | a277162b976e 6759eb4387a5 |
comparison
equal
deleted
inserted
replaced
19369:7df6301c28ed | 19370:9c03677be7c5 |
---|---|
140 PURPLE_MESSAGE_NO_LOG, time(NULL)); | 140 PURPLE_MESSAGE_NO_LOG, time(NULL)); |
141 break; | 141 break; |
142 } | 142 } |
143 g_free(error); | 143 g_free(error); |
144 } | 144 } |
145 else if (!purple_account_is_connected(ggconv->active_conv->account)) | |
146 { | |
147 purple_conversation_write(ggconv->active_conv, "", _("Message was not sent, because you are not signed on."), | |
148 PURPLE_MESSAGE_ERROR | PURPLE_MESSAGE_NO_LOG, time(NULL)); | |
149 } | |
145 else | 150 else |
146 { | 151 { |
147 char *escape = g_markup_escape_text(text, -1); | 152 char *escape = g_markup_escape_text(text, -1); |
148 char *apos = purple_strreplace(escape, "'", "'"); | 153 char *apos = purple_strreplace(escape, "'", "'"); |
149 g_free(escape); | 154 g_free(escape); |