changeset 2831:cf50045c0167

[gaim-migrate @ 2844] i love this. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 02 Dec 2001 07:49:27 +0000
parents c229b7405178
children e0eeda0a9ab9
files src/conversation.c src/protocols/irc/irc.c
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Sun Dec 02 07:40:07 2001 +0000
+++ b/src/conversation.c	Sun Dec 02 07:49:27 2001 +0000
@@ -925,7 +925,7 @@
 			do_error_dialog(_("Unable to send message: too large"), _("Message Error"));
 		else
 			do_error_dialog(_("Unable to send message: Unknown reason"), _("Message Error"));
-	} else {
+	} else if (err > 0) {
 		gtk_editable_delete_text(GTK_EDITABLE(c->entry), 0, -1);
 
 		if (away_options & OPT_AWAY_BACK_ON_IM) {
--- a/src/protocols/irc/irc.c	Sun Dec 02 07:40:07 2001 +0000
+++ b/src/protocols/irc/irc.c	Sun Dec 02 07:49:27 2001 +0000
@@ -1350,7 +1350,6 @@
 			c->gc = NULL;
 			g_snprintf(buf, sizeof(buf), _("You have left %s"), chan);
 			do_error_dialog(buf, _("IRC Part"));
-			return -1;
 		}
 	} else if (!g_strcasecmp(pdibuf, "WHOIS")) {
 		g_snprintf(buf, sizeof(buf), "WHOIS %s\r\n", word_eol[2]);