This commit is contained in:
aozhiwei 2024-03-25 19:26:19 +08:00
parent 08cb408b7a
commit 15891a8c23

View File

@ -76,6 +76,13 @@ void RoomMgr::_CMJoin(f8::MsgHdr* hdr, const cs::CMJoin& msg)
JoinErrorHandle(msg, 2, hdr->socket_handle);
return;
}
{
auto member = GetCustomMemberBySocket(hdr->socket_handle);
if (member) {
JoinErrorHandle(msg, 100, hdr->socket_handle);
return;
}
}
{
cs::CMJoin* mutable_msg = (cs::CMJoin*)&msg;
AdjustCMJoin(mutable_msg);