diff options
author | marzavec <admin@marzavec.com> | 2020-03-06 18:00:30 +0100 |
---|---|---|
committer | marzavec <admin@marzavec.com> | 2020-03-06 18:00:30 +0100 |
commit | da9cbe3dbb799b7b668c895367c7d3778f1d0e16 (patch) | |
tree | 026aebaf1c24e82043c658d29afc8cc9b0bce121 /server/src/commands/core/chat.js | |
parent | Merge pull request #89 from MinusGix/nul_initial2 (diff) | |
download | hackchat-da9cbe3dbb799b7b668c895367c7d3778f1d0e16.tar.gz hackchat-da9cbe3dbb799b7b668c895367c7d3778f1d0e16.zip |
Minor UAC tweaks
Added an underscore to the uac info lib which prevents the server from attempting to use the file as a command module, allowing removal of the 'info' property and empty 'run' command
Diffstat (limited to '')
-rw-r--r-- | server/src/commands/core/chat.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/commands/core/chat.js b/server/src/commands/core/chat.js index 01ee256..908c205 100644 --- a/server/src/commands/core/chat.js +++ b/server/src/commands/core/chat.js @@ -2,7 +2,7 @@ Description: Rebroadcasts any `text` to all clients in a `channel` */ -import * as UAC from "../utility/UAC/info"; +import * as UAC from '../utility/UAC/_info'; // module support functions const parseText = (text) => { @@ -45,7 +45,7 @@ export async function run(core, server, socket, data) { cmd: 'chat', nick: socket.nick, text, - level: socket.level + level: socket.level, }; if (UAC.isAdmin(socket.level)) { |