- cmd_whowas(InspIRCd* Instance);
- CmdResult Handle(const char** parameters, int pcnt, userrec *user);
- CmdResult HandleInternal(const unsigned int id, const std::deque<classbase*> ¶meters);
- void AddToWhoWas(userrec* user);
- void GetStats(Extensible* ext);
- void PruneWhoWas(time_t t);
- void MaintainWhoWas(time_t t);
- virtual ~cmd_whowas();
+ /** Max number of WhoWas entries per user.
+ */
+ unsigned int GroupSize;
+
+ /** Max number of cumulative user-entries in WhoWas.
+ * When max reached and added to, push out oldest entry FIFO style.
+ */
+ unsigned int MaxGroups;
+
+ /** Max seconds a user is kept in WhoWas before being pruned.
+ */
+ unsigned int MaxKeep;
+
+ CommandWhowas(Module* parent);
+ /** Handle command.
+ * @param parameters The parameters to the comamnd
+ * @param pcnt The number of parameters passed to teh command
+ * @param user The user issuing the command
+ * @return A value from CmdResult to indicate command success or failure.
+ */
+ CmdResult Handle(const std::vector<std::string>& parameters, User *user);
+ void AddToWhoWas(User* user);
+ std::string GetStats();
+ void Prune();
+ void Maintain();
+ ~CommandWhowas();