lightirc: small code cleanups