irclog: fix Prev link in dated view

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>