Hi guys! I've been having some trouble with a little script. Say that a guy is in a channel we dont like (let's call it #porn), and he joins my channel. I want to check if he's on that channel, and then kick/ban him from my channel if he is.
Here's the one I'm using. Not actually 100% on this :S

raw 319:*:{ set $1- %channels | halt }
on *:JOIN:#mychan:{
if ($nick == $me) { halt }
.whois $nick
if (#porn isin %channels) {
.echo # $nick is a member of #porn
.ban $nick
.kick # $nick Brukere av #porn er ikke ønsket her...
unset %channels

Any help would be great! smile

As Far As I Know, there is one positive thing about life......

It ends... laugh