simplisity time:
[color:green]on[/color] 9:TEXT:.kick*:#: {
if ($nick isop $chan) { /Kick $chan $nick }
}
i have no idea why you wanted $2 variables in there...
hmm
My Kick
on *:kick:#: {
if ($me == $knick) {
join $chan
/timer 1 1 /kick $chan $nick >=(
}
else {
if ($nick == $me) halt
/kick $chan $nick
}
}
Ok, first of all the $2 in the script is the person being kicked so it should include a check to see that $2 is actually in the channel. Your code is also incorrect, because it will kick the person who did '.kick Someone' rather than kick 'Someone'.
Second, the kick script you have posted it not what he asked for.
Unless I misunderstood, this script will do what he is asking.
on @9:text:.kick *:#:{
if ($2 != $null && $2 ison # && $nick isop #) { kick # $2 }
}
What's happening here...
@9 means the script will not trigger unless $nick has a userlevel of 9 and also that CraZyHanD is opped.
It also checks to see that there is a 'person' to kick and that 'person' is currently on the channel. Lastly it checks that the $nick who said the command is also an op on the channel. If all of these are true, then it kicks 'person'.