X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommands%2Fcmd_whowas.h;h=19b7b74fdd7a26ecc012d24608f3f3ba3aef1ce7;hb=ab8305ad99d7bb7d2cfe4154b2deb007546d5b70;hp=e4fc695330c2ea6084c69968c23f6a30cdd56b25;hpb=17fd32bf7492aa40ce531b64c81754f039907ca7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h index e4fc69533..19b7b74fd 100644 --- a/include/commands/cmd_whowas.h +++ b/include/commands/cmd_whowas.h @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * InspIRCd: (C) 2002-2010 InspIRCd Development Team * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see @@ -72,12 +72,8 @@ class CommandWhowas : public Command */ whowas_users_fifo whowas_fifo; - /* String holding stats so it can be collected - */ - std::string stats; - public: - CommandWhowas(InspIRCd* Instance, Module* parent); + CommandWhowas(Module* parent); /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command @@ -94,7 +90,7 @@ class CommandWhowas : public Command /** Used to hold WHOWAS information */ -class WhoWasGroup : public classbase +class WhoWasGroup { public: /** Real host @@ -108,7 +104,7 @@ class WhoWasGroup : public classbase std::string ident; /** Server name */ - const char* server; + std::string server; /** Fullname (GECOS) */ std::string gecos; @@ -116,7 +112,7 @@ class WhoWasGroup : public classbase */ time_t signon; - /** Initialize this WhoQasFroup with a user + /** Initialize this WhoWasFroup with a user */ WhoWasGroup(User* user); /** Destructor @@ -126,11 +122,9 @@ class WhoWasGroup : public classbase class WhoWasMaintainTimer : public Timer { - private: - InspIRCd* ServerInstance; public: - WhoWasMaintainTimer(InspIRCd* Instance, long interval) - : Timer(interval, Instance->Time(), true), ServerInstance(Instance) + WhoWasMaintainTimer(long interval) + : Timer(interval, ServerInstance->Time(), true) { } virtual void Tick(time_t TIME);