irclog: fix Prev link in the first date

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