[Commands] Cleanup #devtools Command. (#2538)

* [Commands] Cleanup #devtools Command.

- Cleanup messages and logic.

* Update client.cpp
This commit is contained in:
Kinglykrab
2022-11-14 14:06:36 -05:00
committed by GitHub
parent aa506110e1
commit df57138a61
4 changed files with 30 additions and 29 deletions
+2 -2
View File
@@ -1725,8 +1725,8 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
* DevTools Load Settings
*/
if (Admin() >= EQ::DevTools::GM_ACCOUNT_STATUS_LEVEL) {
std::string dev_tools_window_key = StringFormat("%i-dev-tools-disabled", AccountID());
if (DataBucket::GetData(dev_tools_window_key) == "true") {
const auto dev_tools_key = fmt::format("{}-dev-tools-disabled", AccountID());
if (DataBucket::GetData(dev_tools_key) == "true") {
dev_tools_enabled = false;
}
}