Add TeamSync outbound team create queue
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "SendCommands.hh"
|
||||
#include "StaticGameData.hh"
|
||||
#include "Text.hh"
|
||||
#include "TeamSync.hh"
|
||||
#include "BrutalPeeps.hh"
|
||||
#include "AccountSync.hh"
|
||||
|
||||
@@ -6087,6 +6088,8 @@ static asio::awaitable<void> on_EA_BB(std::shared_ptr<Client> c, Channel::Messag
|
||||
c->login->account->bb_team_id = team->team_id;
|
||||
c->login->account->save();
|
||||
|
||||
TeamSync::enqueue_team_create(team_name, c->login->account->account_id, player_name);
|
||||
|
||||
send_command(c, 0x02EA, 0x00000000);
|
||||
send_team_metadata_change_notifications(s, team, c->login->account->account_id, TeamMetadataChange::TEAM_CREATED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user