]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/commands/cmd_whowas.h
I think this fixes visual studio oddities
[user/henk/code/inspircd.git] / include / commands / cmd_whowas.h
index ccbe40493db43438aa52f2146c0b96d46150cbea..e2bab7a0f610414c431e1e5de8d1a85442247f3a 100644 (file)
@@ -3,13 +3,13 @@
  *       +------------------------------------+
  *
  *  InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
- *                       E-mail:
- *                <brain@chatspike.net>
- *                <Craig@chatspike.net>
+ *                    E-mail:
+ *             <brain@chatspike.net>
+ *             <Craig@chatspike.net>
  *
  * Written by Craig Edwards, Craig McLure, and others.
  * This program is free but copyrighted software; see
- *            the file COPYING for details.
+ *         the file COPYING for details.
  *
  * ---------------------------------------------------
  */
@@ -33,14 +33,14 @@ enum Internals
 };
 
 /* Forward ref for timer */
-class MaintainTimer;
+class WhoWasMaintainTimer;
 
 /* Forward ref for typedefs */
 class WhoWasGroup;
 
 /** InspTimer that is used to maintain the whowas list, called once an hour
  */
-MaintainTimer* timer;
+extern WhoWasMaintainTimer* timer;
 
 /** A group of users related by nickname
  */
@@ -67,6 +67,10 @@ class cmd_whowas : public command_t
         */
        whowas_users_fifo whowas_fifo;
 
+       /* String holding stats so it can be collected
+        */
+       std::string stats;
+
   public:
        cmd_whowas(InspIRCd* Instance);
        CmdResult Handle(const char** parameters, int pcnt, userrec *user);
@@ -110,12 +114,12 @@ class WhoWasGroup : public classbase
        ~WhoWasGroup();
 };
 
-class MaintainTimer : public InspTimer
+class WhoWasMaintainTimer : public InspTimer
 {
   private:
        InspIRCd* ServerInstance;
   public:
-       MaintainTimer(InspIRCd* Instance, long interval)
+       WhoWasMaintainTimer(InspIRCd* Instance, long interval)
        : InspTimer(interval, Instance->Time(), true), ServerInstance(Instance)
        {
        }