lightirc: fix some more bugs