input script

By Master-Of-Death on Aug 12, 2009

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
}

Comments

Sign in to comment.
Master-Of-Death   -  Nov 28, 2009

wow i forgot about this script lol, ty for the update Jethro_

 Respond  
Serpentsounds   -  Nov 28, 2009

Umm..isn't that what an alias definition is for? An input script seems pointless for this.

 Respond  
Jethro   -  Nov 28, 2009

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) 
}
 Respond  
Hamed Crow   -  Nov 27, 2009

Sorry but 2/5 according to http://txtb.in/3Sl

 Respond  
PATX   -  Aug 12, 2009
 Respond  
Master-Of-Death   -  Aug 12, 2009

don't worry i will

 Respond  
PATX   -  Aug 12, 2009

no u dont if you have it... change it. make it better cos atm is sucks...

 Respond  
Master-Of-Death   -  Aug 12, 2009

don't worry i know.

 Respond  
knoeki   -  Aug 12, 2009

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.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.