type: k to kick someone
type: b <nick to ban and kick them for 3 minutes
type: akick to ban them and akick them for good.
on *:INPUT:*:#:{ if ($1 == k) && ($2 isin #) { raw -q kick # $2 4BReaking Rules
}
elseif ($1 == b) && ($2 isin #) { ban -ku180 # $address($2,2) 43 minute ban
}
elseif ($1 == akick) && ($2 isin #) { ban -k # $address($2,2)
guser akick $address($2,2)
}
on akick:JOIN:#:{ set %ban $address($2,2)
set %chan #
.msg $me Do you Wanna akick $nick $+ ? yes or no?
}
on *:INPUT:yes*:?:{ ban -k %chan %ban
}
on *:INPUT:no*:?:{ guser unakick %ban
}
First of all, your script will fail to work because of an extra, redundant *: symbol to your input event. I've tried to improve your original script by modifying it to this:
on @*:INPUT:#: {
if (/* !iswm $1-) {
if ($1 == k) && ($2 ison #) {
raw -q kick # $2 4BReaking Rules
}
if ($1 == b) && ($2 ison #) {
ban -ku180 # $address($2,2) 43 minute ban
}
if ($1 == akick) && ($2 ison #) {
ban -k # $address($2,2)
guser akick $address($2,2)
}
}
}
on @akick:JOIN:#: {
set -e %nick $nick
set -e %chan #
.timeryn 1 0 yesno
}
alias -l yesno {
$iif($input(Do you Wanna akick %nick $+ ? Yes or No?,yv) != $yes,guser unakick %ban,ban -k %chan %nick 2)
}
there's so much fail in here I don't even know where to start...
1) bad indenting
2) sending an MSG to yourself is pointless
3) what if someone wants to type just the letter 'k'?
4) what if you want to specify a kickmessage?
5) what's the point of autokick if it's going to ask you for a confirmation?
those are just a few things I spot from quickly looking.