Core/Opcodes: Remove some opcodes that no longer exist on cata and fix a couple of log messages
This commit is contained in:
1 parent
1f162fb7c0
commit
bb559072ee
6 files changed
+1665
-1680
No files matched your search
@@ -58,23 +58,6 @@ void WorldSession::HandleGuildQueryOpcode(WorldPacket& recvPacket)
|
||||
Guild::SendCommandResult(this, GUILD_CREATE_S, ERR_GUILD_PLAYER_NOT_IN_GUILD);
|
||||
}
|
||||
|
||||
void WorldSession::HandleGuildCreateOpcode(WorldPacket& recvPacket)
|
||||
{
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "WORLD: Received CMSG_GUILD_CREATE");
|
||||
|
||||
std::string name;
|
||||
recvPacket >> name;
|
||||
|
||||
if (!GetPlayer()->GetGuildId()) // Player cannot be in guild
|
||||
{
|
||||
Guild* guild = new Guild();
|
||||
if (guild->Create(GetPlayer(), name))
|
||||
sGuildMgr->AddGuild(guild);
|
||||
else
|
||||
delete guild;
|
||||
}
|
||||
}
|
||||
|
||||
void WorldSession::HandleGuildInviteOpcode(WorldPacket& recvPacket)
|
||||
{
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "WORLD: Received CMSG_GUILD_INVITE");
|
||||
|
||||
Reference in new issue
Block a user