fixed some missing includes
[NeonServV5.git] / src / modcmd.c
index e19d261318cd71f169f894bee1efc2a1ea5259c8..0c1e92e67571f7184904813271b7a6561d30857c 100644 (file)
@@ -27,6 +27,7 @@
 #include "mysqlConn.h"
 #include "DBHelper.h"
 #include "EventLogger.h"
+#include "tools.h"
 
 struct trigger_callback {
     int botid;
@@ -237,8 +238,7 @@ static void handle_command(struct ClientSocket *client, struct UserNode *user, s
                 if(cbind == NULL) break;
             } else if(cbind->flags & CMDFLAG_SUB_LINKER)
                 cbind = modcmd_sub_linker_command(client, textclient, user, cbind, bind_index, &args);
-            if(statistics_enabled)
-                statistics_commands++;
+            statistics_commands++;
             total_triggered++;
             cbind->triggered++;
             if((BIND_FLAGS(cbind) & CMDFLAG_FUNCMD)) {