1
This commit is contained in:
parent
456ac47c8f
commit
14876006ac
@ -868,6 +868,10 @@ void RoomMgr::_CMJoinCustomBattle(f8::MsgHdr& hdr, const cs::CMJoin& msg)
|
||||
RoomMgr::Instance()->JoinErrorHandle(*join_msg, 2, socket_handle);
|
||||
return;
|
||||
}
|
||||
if (!p->CanAdd(join_msg->account_id(), join_msg->session_id())) {
|
||||
RoomMgr::Instance()->JoinErrorHandle(*join_msg, 2, socket_handle);
|
||||
return;
|
||||
}
|
||||
};
|
||||
SendGetCustomBattleData(join_msg, cb);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user