# HG changeset patch # User Mark Doliner # Date 1081911425 0 # Node ID 69a1b2a7a0d893360f2c6c05e07a8bd37a905346 # Parent 44d6285a87af629e5b4c854121c1091f539c65ce [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 diff -r 44d6285a87af -r 69a1b2a7a0d8 src/gtkconv.c --- 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);