| 923 if (err < 0) { |
923 if (err < 0) { |
| 924 if (err == -E2BIG) |
924 if (err == -E2BIG) |
| 925 do_error_dialog(_("Unable to send message: too large"), _("Message Error")); |
925 do_error_dialog(_("Unable to send message: too large"), _("Message Error")); |
| 926 else |
926 else |
| 927 do_error_dialog(_("Unable to send message: Unknown reason"), _("Message Error")); |
927 do_error_dialog(_("Unable to send message: Unknown reason"), _("Message Error")); |
| 928 } else if (err > 0) { |
928 } else { |
| 929 gtk_editable_delete_text(GTK_EDITABLE(c->entry), 0, -1); |
929 gtk_editable_delete_text(GTK_EDITABLE(c->entry), 0, -1); |
| 930 |
930 |
| 931 if (away_options & OPT_AWAY_BACK_ON_IM) { |
931 if ((err > 0) && (away_options & OPT_AWAY_BACK_ON_IM)) { |
| 932 if (awaymessage != NULL) { |
932 if (awaymessage != NULL) { |
| 933 do_im_back(); |
933 do_im_back(); |
| 934 } else if (c->gc->away) { |
934 } else if (c->gc->away) { |
| 935 serv_set_away(c->gc, GAIM_AWAY_CUSTOM, NULL); |
935 serv_set_away(c->gc, GAIM_AWAY_CUSTOM, NULL); |
| 936 } |
936 } |