c++ irc bot which collects history