Just to add to this.....

I made this script for someone else and it could be of some use for you, At the moment zaza's script checks the user on joining your channel and then that's it. So if the user joins your channel, the script checks the user and bans them if they are in a bad channel and will leave them alone if there not.

This means the user can join your channel 1st, then join the bad channel and the script will not know as it only checks once on joining. The below code will check the user on joining your channel and then will recheck every 30 minutes and will ban the user for 15 minutes if found in a bad channel. (times can be changed)

Change the YOURCHANNEL to your channel name and the *BADCHANNEL* to the name of the bad channel, make sure the * stays on the front and end of the name.

Code:


on *:join:#: {
  if ($chan == #YOURCHANNEL) { .timer $+ $nick 0 1800 .whois $nick | .whois $nick } 

}
on *:part:#: {
  if ($chan == #YOURCHANNEL) { .timer $+ $nick off }

}
on *:quit: { 
  { .timer $+ $nick off }

}
raw 319:*: {
  if *BADCHANNEL* iswm $1- { .ban -ku900 #YOURCHANNEL $2 2 Banned for 15 minutes for being in a bad channel | timer $+ $2 off } 



If you want to add more than one bad channel just copy this section and place it at the very end of the script and change the *BADCHANNEL*

Code:

 if *BADCHANNEL* iswm $1- { .ban -ku900 #YOURCHANNEL $2 2 Banned for 15 minutes for being in a bad channel | timer $+ $2 off }



Hope this helps laugh


Regards

JayStew