diff options
Diffstat (limited to 'server/src/commands/mod/unban.js')
-rw-r--r-- | server/src/commands/mod/unban.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/commands/mod/unban.js b/server/src/commands/mod/unban.js index 0d1e469..b8506f3 100644 --- a/server/src/commands/mod/unban.js +++ b/server/src/commands/mod/unban.js @@ -2,10 +2,12 @@ Description: Removes a target ip from the ratelimiter */ +import * as UAC from "../utility/UAC/info"; + // module main export async function run(core, server, socket, data) { // increase rate limit chance and ignore if not admin or mod - if (socket.uType === 'user') { + if (!UAC.isModerator(socket.level)) { return server.police.frisk(socket.address, 10); } @@ -47,7 +49,7 @@ export async function run(core, server, socket, data) { server.broadcast({ cmd: 'info', text: `${socket.nick} unbanned: ${target}`, - }, { uType: 'mod' }); + }, { level: UAC.isModerator }); // stats are fun core.stats.decrement('users-banned'); |