lightirc: simplify sending of parts and closing PMs