changeset 8655:69a1b2a7a0d8

[gaim-migrate @ 9407] Fix bug 933980: Message send key works when it shouldn't (hitting enter in the gtkconv of an offline account) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 14 Apr 2004 02:57:05 +0000
parents 44d6285a87af
children a47f038ecf9a
files src/gtkconv.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Wed Apr 14 02:19:18 2004 +0000
+++ b/src/gtkconv.c	Wed Apr 14 02:57:05 2004 +0000
@@ -281,9 +281,14 @@
 send_cb(GtkWidget *widget, GaimConversation *conv)
 {
 	GaimGtkConversation *gtkconv;
+	GaimAccount *account;
 	char *buf, *clean;
 
 	gtkconv = GAIM_GTK_CONVERSATION(conv);
+	account = gaim_conversation_get_account(conv);
+
+	if (!gaim_account_is_connected(account))
+		return;
 
 	buf = gtk_imhtml_get_markup(GTK_IMHTML(gtkconv->entry));
 	clean = gaim_markup_strip_html(buf);