From 02847c68495da382ad1cdf07cacf02a34106eb54 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Wed, 3 Apr 2024 04:00:07 -0700 Subject: [PATCH] only save command if it is a GM command --- dGame/dUtilities/SlashCommandHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/dUtilities/SlashCommandHandler.cpp b/dGame/dUtilities/SlashCommandHandler.cpp index 205696bf..da1d7e18 100644 --- a/dGame/dUtilities/SlashCommandHandler.cpp +++ b/dGame/dUtilities/SlashCommandHandler.cpp @@ -121,7 +121,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& chat, Entity* if (commandItr != RegisteredCommands.end()) { auto& [alias, commandHandle] = *commandItr; if (entity->GetGMLevel() >= commandHandle.requiredLevel) { - Database::Get()->InsertSlashCommandUsage(entity->GetObjectID(), input); + if (commandHandle.requiredLevel > eGameMasterLevel::CIVILIAN) Database::Get()->InsertSlashCommandUsage(entity->GetObjectID(), input); commandHandle.handle(entity, sysAddr, args); } else { // We don't need to tell civilians they aren't high enough level