From c634e03cb553e21158fddc6d4221a54aa799de79 Mon Sep 17 00:00:00 2001
From: marzavec <admin@marzavec.com>
Date: Mon, 18 Mar 2019 23:36:21 -0700
Subject: refactoring 1 of 2

---
 server/src/commands/mod/ban.js   | 2 +-
 server/src/commands/mod/kick.js  | 2 +-
 server/src/commands/mod/unban.js | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'server/src/commands/mod')

diff --git a/server/src/commands/mod/ban.js b/server/src/commands/mod/ban.js
index 8236136..93c536b 100644
--- a/server/src/commands/mod/ban.js
+++ b/server/src/commands/mod/ban.js
@@ -56,7 +56,7 @@ exports.run = async (core, server, socket, data) => {
   badClient.terminate();
 
   // stats are fun
-  core.managers.stats.increment('users-banned');
+  core.stats.increment('users-banned');
 };
 
 // module meta
diff --git a/server/src/commands/mod/kick.js b/server/src/commands/mod/kick.js
index 0e8ee0a..808defa 100644
--- a/server/src/commands/mod/kick.js
+++ b/server/src/commands/mod/kick.js
@@ -69,7 +69,7 @@ exports.run = async (core, server, socket, data) => {
   }, { channel: socket.channel, uType: 'user' });
 
   // stats are fun
-  core.managers.stats.increment('users-kicked', kicked.length);
+  core.stats.increment('users-kicked', kicked.length);
 };
 
 // module meta
diff --git a/server/src/commands/mod/unban.js b/server/src/commands/mod/unban.js
index 0cd8ca7..71be9bb 100644
--- a/server/src/commands/mod/unban.js
+++ b/server/src/commands/mod/unban.js
@@ -49,7 +49,7 @@ exports.run = async (core, server, socket, data) => {
   }, { uType: 'mod' });
 
   // stats are fun
-  core.managers.stats.decrement('users-banned');
+  core.stats.decrement('users-banned');
 };
 
 // module meta
-- 
cgit v1.2.1