170 /6 idle problem

What kind of shape is the carb in? If it still idles bad after you've replaced the fuel filter then I'd recommend a carb rebuild if it hasn't had one already; I bet the needles and seats aren't working properly and the fuel pump is pushing gas into the engine.