]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/commands/cmd_whowas.h
Add a setting to <connect> allowing the threshold for activation of the penalty syste...
[user/henk/code/inspircd.git] / include / commands / cmd_whowas.h
index e4fc695330c2ea6084c69968c23f6a30cdd56b25..71c635b392e250cc9802e804eec92898b419b00c 100644 (file)
@@ -77,7 +77,7 @@ class CommandWhowas : public Command
        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 +94,7 @@ class CommandWhowas : public Command
 
 /** Used to hold WHOWAS information
  */
-class WhoWasGroup : public classbase
+class WhoWasGroup
 {
  public:
        /** Real host
@@ -108,7 +108,7 @@ class WhoWasGroup : public classbase
        std::string ident;
        /** Server name
         */
-       const char* server;
+       std::string server;
        /** Fullname (GECOS)
         */
        std::string gecos;
@@ -116,7 +116,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 +126,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);