mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7277] Correctly show guild bank tab info text for author and members not only after login but also after change.
This commit is contained in:
parent
b052777f71
commit
d9c74376b3
2 changed files with 10 additions and 2 deletions
|
|
@ -1969,6 +1969,9 @@ void Guild::SetGuildBankTabText(uint8 TabId, std::string text)
|
|||
|
||||
CharacterDatabase.escape_string(text);
|
||||
CharacterDatabase.PExecute("UPDATE guild_bank_tab SET TabText='%s' WHERE guildid='%u' AND TabId='%u'", text.c_str(), Id, uint32(TabId));
|
||||
|
||||
// announce
|
||||
SendGuildBankTabText(NULL,TabId);
|
||||
}
|
||||
|
||||
void Guild::SendGuildBankTabText(WorldSession *session, uint8 TabId)
|
||||
|
|
@ -1983,7 +1986,12 @@ void Guild::SendGuildBankTabText(WorldSession *session, uint8 TabId)
|
|||
WorldPacket data(MSG_QUERY_GUILD_BANK_TEXT, 1+tab->Text.size()+1);
|
||||
data << uint8(TabId);
|
||||
data << tab->Text;
|
||||
session->SendPacket(&data);
|
||||
|
||||
if(session)
|
||||
session->SendPacket(&data);
|
||||
else
|
||||
BroadcastPacket(&data);
|
||||
|
||||
}
|
||||
|
||||
bool GuildItemPosCount::isContainedIn(GuildItemPosCountVec const &vec) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue