mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 15:52:26 +00:00
Tweak to commandaliases behavior
This commit is contained in:
parent
24ea7e03f1
commit
78f22599f4
@ -144,6 +144,8 @@ Access Levels:
|
|||||||
|
|
||||||
int command_init(void)
|
int command_init(void)
|
||||||
{
|
{
|
||||||
|
commandaliases.clear();
|
||||||
|
|
||||||
if (
|
if (
|
||||||
command_add("acceptrules", "[acceptrules] - Accept the EQEmu Agreement", 0, command_acceptrules) ||
|
command_add("acceptrules", "[acceptrules] - Accept the EQEmu Agreement", 0, command_acceptrules) ||
|
||||||
command_add("advnpcspawn", "[maketype|makegroup|addgroupentry|addgroupspawn][removegroupspawn|movespawn|editgroupbox|cleargroupbox]", 150, command_advnpcspawn) ||
|
command_add("advnpcspawn", "[maketype|makegroup|addgroupentry|addgroupspawn][removegroupspawn|movespawn|editgroupbox|cleargroupbox]", 150, command_advnpcspawn) ||
|
||||||
@ -419,8 +421,6 @@ int command_init(void)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
commandaliases.clear();
|
|
||||||
|
|
||||||
std::map<std::string, std::pair<uint8, std::vector<std::string>>> command_settings;
|
std::map<std::string, std::pair<uint8, std::vector<std::string>>> command_settings;
|
||||||
database.GetCommandSettings(command_settings);
|
database.GetCommandSettings(command_settings);
|
||||||
for (std::map<std::string, CommandRecord *>::iterator iter_cl = commandlist.begin(); iter_cl != commandlist.end(); ++iter_cl) {
|
for (std::map<std::string, CommandRecord *>::iterator iter_cl = commandlist.begin(); iter_cl != commandlist.end(); ++iter_cl) {
|
||||||
@ -511,6 +511,7 @@ int command_add(std::string command_name, const char *desc, int access, CmdFuncP
|
|||||||
c->function = function;
|
c->function = function;
|
||||||
|
|
||||||
commandlist[command_name] = c;
|
commandlist[command_name] = c;
|
||||||
|
commandaliases[command_name] = command_name;
|
||||||
cleanup_commandlist.Append(c);
|
cleanup_commandlist.Append(c);
|
||||||
commandcount++;
|
commandcount++;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user