irclog: fix duplicate-msg bug in paged mode

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