project_files/frontlib/net/netconn_send.c
changeset 7458 fec6fa1e460e
parent 7338 1ed603a54ebd
child 7482 d70a5b0d1190
--- a/project_files/frontlib/net/netconn_send.c	Wed Aug 01 21:13:39 2012 +0200
+++ b/project_files/frontlib/net/netconn_send.c	Thu Aug 02 16:35:12 2012 +0200
@@ -134,7 +134,7 @@
 int flib_netconn_send_leaveRoom(flib_netconn *conn, const char *str) {
 	int result = -1;
 	if(flib_netconn_is_in_room_context(conn)) {
-		int result = (str && *str) ? sendStr(conn, "PART", str) : sendVoid(conn, "PART");
+		result = (str && *str) ? sendStr(conn, "PART", str) : sendVoid(conn, "PART");
 		if(!result) {
 			netconn_leaveRoom(conn);
 		}