lightirc: squash more bugs

* fix NPEs and disconnection issues mainly