Kickban (variable address)

By DiAbLo19 on Oct 13, 2008

Paste the snippet below in Remotes.

In this script, you will be able to choose what address you wish to ban someone by.
There are 21 different types of addresses.

Just right click on the n00b's name, and select banmask, and add in your little kick message.

Enjoy.

menu nicklist {
  .KickBan $1
  ..Select Ban Mask: return
  ..$address($1,1) :/ban -k $chan $1 1 $$?="Reason"
  ..$address($1,2) :/ban -k $chan $1 2 $$?="Reason"
  ..$address($1,3) :/ban -k $chan $1 3 $$?="Reason"
  ..$address($1,4) :/ban -k $chan $1 4 $$?="Reason"
  ..$address($1,5) :/ban -k $chan $1 5 $$?="Reason"
  ..$address($1,6) :/ban -k $chan $1 6 $$?="Reason"
  ..$address($1,7) :/ban -k $chan $1 7 $$?="Reason"
  ..$address($1,8) :/ban -k $chan $1 8 $$?="Reason"
  ..$address($1,9) :/ban -k $chan $1 9 $$?="Reason"
  ..$address($1,10) :/ban -k $chan $1 10 $$?="Reason"
  ..$address($1,11) :/ban -k $chan $1 11 $$?="Reason"
  ..$address($1,12) :/ban -k $chan $1 12 $$?="Reason"
  ..$address($1,13) :/ban -k $chan $1 13 $$?="Reason"
  ..$address($1,14) :/ban -k $chan $1 14 $$?="Reason"
  ..$address($1,15) :/ban -k $chan $1 15 $$?="Reason"
  ..$address($1,16) :/ban -k $chan $1 16 $$?="Reason"
  ..$address($1,17) :/ban -k $chan $1 17 $$?="Reason"
  ..$address($1,18) :/ban -k $chan $1 18 $$?="Reason"
  ..$address($1,19) :/ban -k $chan $1 19 $$?="Reason"
  ..$address($1,20) :/ban -k $chan $1 20 $$?="Reason"
}

Comments

Sign in to comment.
RusselB   -  Oct 17, 2008

A lot of them are similar, but they are different, with the main difference being the location of wildcard(s) in the returned address. See /help $mask for more details.

 Respond  
napa182   -  Oct 17, 2008

hmm why so many for? most are repeats. well thats what it shows for me.

 Respond  
RusselB   -  Oct 17, 2008

Alternatively, since not everyone knows which ban mask number is for which ban mask, a sub-menu using $sub-menu could've been used.

I also noted that the OP states 21 possible ban-masks, yet only has 20 liste (ban mask 0 is not in the code)

 Respond  
^Neptune   -  Oct 13, 2008
  ..Select Ban Mask: return

Ya don't need the return there.

I think it would be nicer to have a $? asking which number they'd like to do, and then if $? is over 20, return an error.

 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.