I'm trying to write a script to kill bottler scripts that come on to our network.
on 1:JOIN:*: {
set %blahfirst {
userhost $nick
}
timer 1 2 set %blah $gettok(%blahfirst,2,64)
timer 1 4 ctcp $nick version
}
on *:ctcpreply:VERSION*Bottler*:{
echo -dt $nick is a bottler script ( $+ $1- $+ )
msg operserv akill add +2h %blah irc clients without chat features aren't allowed on this network.
kill $nick irc clients without chat features aren't allowed on this network.
HaltDef
}
what's wrong with this?
note: the reason I'm using the %blah/userhost thing is just because our network masks users' hosts. normally the userhost is masked, and not complete.