mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 01:27:20 +00:00
[Commands] Cleanup #devtools Command. (#2538)
* [Commands] Cleanup #devtools Command. - Cleanup messages and logic. * Update client.cpp
This commit is contained in:
1 parent
aa506110e1
commit
df57138a61
4 files changed
+30
-29
No files matched your search
@@ -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