Improve the ZNC buffer playback start/end detection