To pull someones leg is to deceive someone in a joking way. "Stop pulling my leg" means stop teasing or joking with me. In your joke she did not believe he really thought her legs were beautiful.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.