irclog: fix Next link in dated view page

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