Im looking for a script that will, when a user joins #channel2, check if he/her is in #channel1 aswell and if not then kick..

Can anyone help please