mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
committed by
Viste(Кирилл)
parent
84c0bf6961
commit
94d8476e48
@@ -1418,11 +1418,8 @@ void Guild::HandleSetBankTabInfo(WorldSession* session, uint8 tabId, std::string
|
||||
return;
|
||||
}
|
||||
|
||||
char aux[2];
|
||||
sprintf(aux, "%u", tabId);
|
||||
|
||||
tab->SetInfo(name, icon);
|
||||
_BroadcastEvent(GE_BANK_TAB_UPDATED, 0, aux, name.c_str(), icon.c_str());
|
||||
_BroadcastEvent(GE_BANK_TAB_UPDATED, 0, std::to_string(tabId).c_str(), name.c_str(), icon.c_str());
|
||||
}
|
||||
|
||||
void Guild::HandleSetMemberNote(WorldSession* session, std::string const& name, std::string const& note, bool isPublic)
|
||||
@@ -1459,9 +1456,7 @@ void Guild::HandleSetRankInfo(WorldSession* session, uint8 rankId, std::string c
|
||||
for (GuildBankRightsAndSlotsVec::const_iterator itr = rightsAndSlots.begin(); itr != rightsAndSlots.end(); ++itr)
|
||||
_SetRankBankTabRightsAndSlots(rankId, *itr);
|
||||
|
||||
char aux[2];
|
||||
sprintf(aux, "%u", rankId);
|
||||
_BroadcastEvent(GE_RANK_UPDATED, 0, aux, name.c_str());
|
||||
_BroadcastEvent(GE_RANK_UPDATED, 0, std::to_string(rankId).c_str(), name.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1686,11 +1681,7 @@ void Guild::HandleAddNewRank(WorldSession* session, std::string const& name)
|
||||
// Only leader can add new rank
|
||||
if (_IsLeader(session->GetPlayer()))
|
||||
if (_CreateRank(name, GR_RIGHT_GCHATLISTEN | GR_RIGHT_GCHATSPEAK))
|
||||
{
|
||||
char aux[2];
|
||||
sprintf(aux, "%u", size);
|
||||
_BroadcastEvent(GE_RANK_UPDATED, 0, aux, name.c_str());
|
||||
}
|
||||
_BroadcastEvent(GE_RANK_UPDATED, 0, std::to_string(size).c_str(), name.c_str());
|
||||
}
|
||||
|
||||
void Guild::HandleRemoveLowestRank(WorldSession* session)
|
||||
|
||||
Reference in New Issue
Block a user