lightirc: some small bug fixes