mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
[Commands] Cleanup #devtools Command. (#2538)
* [Commands] Cleanup #devtools Command. - Cleanup messages and logic. * Update client.cpp
This commit is contained in:
@@ -9368,6 +9368,14 @@ bool Client::IsDevToolsEnabled() const
|
||||
|
||||
void Client::SetDevToolsEnabled(bool in_dev_tools_enabled)
|
||||
{
|
||||
const auto dev_tools_key = fmt::format("{}-dev-tools-disabled", AccountID());
|
||||
|
||||
if (in_dev_tools_enabled) {
|
||||
DataBucket::DeleteData(dev_tools_key);
|
||||
} else {
|
||||
DataBucket::SetData(dev_tools_key, "true");
|
||||
}
|
||||
|
||||
Client::dev_tools_enabled = in_dev_tools_enabled;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user