#ifndef _READLOG_H_ #define _READLOG_H_ #include #include #include "time.h" enum chanstatus {normal, voice, op}; struct logline { time_t timestamp; enum chanstatus status; std::string nick; std::string message; }; bool parse_logline(struct logline *parsed, std::string raw); void readlog(std::vector &lines, std::istream &infile); #endif