I suggest to add an option to allow/disable chat for some teams. Default would allow everyone to chat, but say you have a Jail group, if you use /scoreboard teams option <team> chat false . It would mute that player forever until he is no longer in the jail group.
Extra to /scoreboard teams option