lightirc: fix part bug and cleanup