mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* [Commands] Cleanup #devtools Command. - Cleanup messages and logic. * Update client.cpp
16 lines
319 B
C++
Executable File
16 lines
319 B
C++
Executable File
#include "../client.h"
|
|
#include "../data_bucket.h"
|
|
|
|
void command_devtools(Client *c, const Seperator *sep)
|
|
{
|
|
bool is_disable = !strcasecmp(sep->arg[1], "disable");
|
|
bool is_enable = !strcasecmp(sep->arg[1], "enable");
|
|
|
|
if (is_disable || is_enable) {
|
|
c->SetDevToolsEnabled(is_enable);
|
|
}
|
|
|
|
c->ShowDevToolsMenu();
|
|
}
|
|
|