lightirc: cleanup code based on Lint