Remove unnecessary packet sending.

This commit is contained in:
Kinglykrab
2022-08-14 19:34:54 -04:00
parent 1da19fd6df
commit e7e77b83af
4 changed files with 22 additions and 29 deletions
+3 -2
View File
@@ -77,8 +77,9 @@ void command_reload(Client *c, const Seperator *sep)
c->Message(Chat::White, "Attempting to reload Blocked Spells globally.");
pack = new ServerPacket(ServerOP_ReloadBlockedSpells, 0);
} else if (is_commands) {
c->Message(Chat::White, "Attempting to reload Commands globally.");
pack = new ServerPacket(ServerOP_ReloadCommands, 0);
c->Message(Chat::White, "Attempting to reload Commands.");
command_init();
return;
} else if (is_content_flags) {
c->Message(Chat::White, "Attempting to reload Content Flags globally.");
pack = new ServerPacket(ServerOP_ReloadContentFlags, 0);
-6
View File
@@ -1916,12 +1916,6 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
zone->LoadZoneBlockedSpells();
break;
}
case ServerOP_ReloadCommands:
{
zone->SendReloadMessage("Commands");
command_init();
break;
}
case ServerOP_ReloadContentFlags:
{
zone->SendReloadMessage("Content Flags");