diff --git a/worldsrv/action_friend.go b/worldsrv/action_friend.go index 0f15b4d..db3bcc2 100644 --- a/worldsrv/action_friend.go +++ b/worldsrv/action_friend.go @@ -461,7 +461,7 @@ func (this *CSInviteFriendOpHandler) Process(s *netlib.Session, packetid int, da return nil } //私有房间 - if scene.sceneMode != common.SceneModePrivate { + if !scene.IsPrivateScene() && !scene.IsCustom() { logger.Logger.Warn("CSInviteFriendHandler scene is common.SceneMode_Private") opRetCode = friend.OpResultCode_OPRC_InviteFriend_RoomLimit //只能进入私有房间 send(p)