project_files/frontlib/net/netconn_send.c
changeset 7458 fec6fa1e460e
parent 7338 1ed603a54ebd
child 7482 d70a5b0d1190
equal deleted inserted replaced
7455:8e86d8d2927d 7458:fec6fa1e460e
   132 }
   132 }
   133 
   133 
   134 int flib_netconn_send_leaveRoom(flib_netconn *conn, const char *str) {
   134 int flib_netconn_send_leaveRoom(flib_netconn *conn, const char *str) {
   135 	int result = -1;
   135 	int result = -1;
   136 	if(flib_netconn_is_in_room_context(conn)) {
   136 	if(flib_netconn_is_in_room_context(conn)) {
   137 		int result = (str && *str) ? sendStr(conn, "PART", str) : sendVoid(conn, "PART");
   137 		result = (str && *str) ? sendStr(conn, "PART", str) : sendVoid(conn, "PART");
   138 		if(!result) {
   138 		if(!result) {
   139 			netconn_leaveRoom(conn);
   139 			netconn_leaveRoom(conn);
   140 		}
   140 		}
   141 	}
   141 	}
   142 	return result;
   142 	return result;