irclog: refactor to use single executable

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