1
This commit is contained in:
parent
8e22df2298
commit
79e79634e0
@ -81,6 +81,12 @@ void CustomBattle::ParseResult(a8::XObject& obj)
|
||||
bool CustomBattle::CanAdd(const std::string& account_id, const std::string& session_id)
|
||||
{
|
||||
auto member = GetMemberByAccountId(account_id);
|
||||
if (!member) {
|
||||
return false;
|
||||
}
|
||||
if (member->IsJoined()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user