changeset 3641:e2391338c394

[gaim-migrate @ 3765] make an error display if you try to send a message when not connected (thanks Patrick (Zyk) Aussems) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 11 Oct 2002 12:24:25 +0000
parents 1c39909fb476
children 5e50f6746509
files src/conversation.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Fri Oct 11 05:39:37 2002 +0000
+++ b/src/conversation.c	Fri Oct 11 12:24:25 2002 +0000
@@ -1376,9 +1376,10 @@
 		else if (err == -ENOTCONN)
 			debug_printf("Not yet connected\n");
 #else
-		else if (err == SOCKET_ERROR)
-			if( WSAENOTCONN == WSAGetLastError() )
+		else if (err == SOCKET_ERROR) {
+			if (WSAENOTCONN == WSAGetLastError())
 				debug_printf("Not yet connected\n");
+		}
 #endif
 		else
 			do_error_dialog(_("Unable to send message"), NULL, GAIM_ERROR);