X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommands%2Fcmd_whowas.h;h=5c2bb62ee881b056655df6c31924d4f281257400;hb=18d9adff0fd2ea811dbbf17814a4ba5e36ed2da4;hp=0a38b44f16071c6ad9bd3e066a2fa3dc3b2f87fa;hpb=558eea33dc323518dba505a99ffbb19b8fbe1267;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h index 0a38b44f1..5c2bb62ee 100644 --- a/include/commands/cmd_whowas.h +++ b/include/commands/cmd_whowas.h @@ -30,9 +30,37 @@ class WhoWasGroup; */ typedef std::deque whowas_set; +namespace WhoWas +{ + /** Everything known about one nick + */ + struct Nick + { + /** Container where each element has information about one occurrence of this nick + */ + whowas_set entries; + + /** Time this nick was added to the database + */ + const time_t addtime; + + /** Nickname whose information is stored in this class + */ + const irc::string nick; + + /** Constructor to initialize fields + */ + Nick(const irc::string& nickname); + + /** Destructor, deallocates all elements in the entries container + */ + ~Nick(); + }; +} + /** Sets of users in the whowas system */ -typedef std::map whowas_users; +typedef std::map whowas_users; /** Sets of time and users in whowas list */