Limiting users to public chat

Is there any way, via server or a specific clients’ setting, to limit users to only designated public chat rooms? I would like to disable private chat messages, but only for certain users.