Hey...I just wanted to put it out there that you can use the script "P&Plus" to do this job. It has a really nice script like you are asking about built in. You can set it up to have different reactions depending on how many times the rule is broke. You can ban a channel say its called "#sex" When a user joins "#teens" while at the same time they are in the channel #sex they will be either sent a msg,notice,kicked or banned. Can also set it up to warn the @'s that the person was warned,banned or kicked or whatever . Also is able to say warn the first time. Kick the second , ban the 3rd time and perm ban the last time. Its a very very useful script and its made for exactly what you are asking about. I use it that way every day.