]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/commands/cmd_stats.h
DO NOT USE THIS COMMIT - if you do, most of the modules wont work.
[user/henk/code/inspircd.git] / include / commands / cmd_stats.h
index 8f98ad599c639e2e25e3265c21556b9df8861976..632bfa17bcfdc4c35fe685f19750a31b0cad0def 100644 (file)
 
 // include the common header files
 
-#include <typeinfo>
-#include <iostream>
-#include <string>
-#include <deque>
-#include <sstream>
-#include <vector>
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 
-void DoStats(char statschar, userrec* user, string_list &results);
+void DoStats(InspIRCd* Instance, char statschar, userrec* user, string_list &results);
 
+/** Handle /STATS
+ */
 class cmd_stats : public command_t
 {
  public:
-        cmd_stats () : command_t("STATS",0,1) { syntax = "[<servername>] <stats-symbol>"; }
-        void Handle(const char** parameters, int pcnt, userrec *user);
+        cmd_stats (InspIRCd* Instance) : command_t(Instance,"STATS",0,1) { syntax = "<stats-symbol> [<servername>]"; }
+        CmdResult Handle(const char** parameters, int pcnt, userrec *user);
 };
 
 #endif