]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_stats.cpp
mass tidyup, change A LOT of stuff to const char** which was char** (such as paramete...
[user/henk/code/inspircd.git] / src / cmd_stats.cpp
index c83974ec425156aad3fefc34647b1d570b9f3c4a..124bdb7a3ff8f03aca510bc65617fec1e14b2a12 100644 (file)
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/resource.h>
-#ifdef THREADED_DNS
-#include <pthread.h>
-#endif
 #ifndef RUSAGE_SELF
 #define   RUSAGE_SELF     0
 #define   RUSAGE_CHILDREN     -1
 #endif
-
 #include "users.h"
 #include "ctables.h"
 #include "globals.h"
@@ -45,7 +41,7 @@
 #include "hashcomp.h"
 #include "socketengine.h"
 #include "command_parse.h"
-#include "cmd_stats.h"
+#include "commands/cmd_stats.h"
 
 extern ServerConfig* Config;
 extern InspIRCd* ServerInstance;
@@ -56,17 +52,12 @@ extern time_t TIME;
 extern user_hash clientlist;
 extern chan_hash chanlist;
 
-void cmd_stats::Handle (char **parameters, int pcnt, userrec *user)
+void cmd_stats::Handle (const char** parameters, int pcnt, userrec *user)
 {
        if (pcnt != 1)
        {
                return;
        }
-       if (parameters[0][1])
-       {
-               /* make the stats query 1 character long */
-               parameters[0][1] = 0;
-       }
 
        if ((*Config->OperOnlyStats) && (strchr(Config->OperOnlyStats,*parameters[0])) && (!*user->oper))
        {