Core/Guilds: Use the right opcode in Guild::SendCommandResult.
Documented the change a little.
This commit is contained in:
1 parent
556dd6b2db
commit
42f3c9cf5b
2 files changed
+5
-2
No files matched your search
@@ -99,7 +99,10 @@ inline uint32 _GetGuildBankTabPrice(uint8 tabId)
|
||||
|
||||
void Guild::SendCommandResult(WorldSession* session, GuildCommandType type, GuildCommandError errCode, std::string const& param)
|
||||
{
|
||||
WorldPacket data(SMSG_GUILD_COMMAND_RESULT, 8 + param.size() + 1);
|
||||
// Note: SMSG_GUILD_COMMAND_RESULT and SMSG_GUILD_COMMAND_RESULT_2 do exactly the same in the client, they just have different structures.
|
||||
// There's no particular reason why we use SMSG_GUILD_COMMAND_RESULT_2, this one is processed inmediately as it is read from the client.
|
||||
// SMSG_GUILD_COMMAND_RESULT is a JAM opcode
|
||||
WorldPacket data(SMSG_GUILD_COMMAND_RESULT_2, 8 + param.size() + 1);
|
||||
data << uint32(type);
|
||||
data << param;
|
||||
data << uint32(errCode);
|
||||
|
||||
Reference in new issue
Block a user