lightirc: multiple updates

* cleanup code
* standardise parting and closing PMs