Select Ban Mask, Edited.

By Vortex on Sep 28, 2005

This is the code from Urza that I edited and added some things on. Credits to Urza.

menu nicklist {
  .KickBan $1
  ..Select Ban Mask: return
  ..$str(-,20) : return
  ..Ban1:/ban -k $chan $1 1 $$?="Reason"
  ..Ban2:/ban -k $chan $1 2 $$?="Reason"
  ..Ban3:/ban -k $chan $1 3 $$?="Reason"
  ..Ban4:/ban -k $chan $1 4 $$?="Reason"
  ..Ban5:/ban -k $chan $1 5 $$?="Reason"
  ..Ban6:/ban -k $chan $1 6 $$?="Reason"
  ..Ban7:/ban -k $chan $1 7 $$?="Reason"
  ..Ban8:/ban -k $chan $1 8 $$?="Reason"
  ..Ban9:/ban -k $chan $1 9 $$?="Reason"
  ..Ban10:/ban -k $chan $1 10 $$?="Reason"
  ...More
  ...Ban11:/ban -k $chan $1 11 $$?="Reason"
  ...Ban12:/ban -k $chan $1 12 $$?="Reason"
  ...Ban13:/ban -k $chan $1 13 $$?="Reason"
  ...Ban14:/ban -k $chan $1 14 $$?="Reason"
  ...Ban15:/ban -k $chan $1 15 $$?="Reason"
  ...Ban16:/ban -k $chan $1 16 $$?="Reason"
  ...Ban17:/ban -k $chan $1 17 $$?="Reason"
  ...Ban18:/ban -k $chan $1 18 $$?="Reason"
  ...Ban19:/ban -k $chan $1 19 $$?="Reason"
  ...Ban20:/ban -k $chan $1 20 $$?="Reason"
}

Comments

Sign in to comment.
anthalus   -  Sep 30, 2005

Wouldn\'t it be easier to just do:

Ban: { var %b = $$?=\"Ban Number (1-20)\" | var %r = $$?=\"Reason:\" | /ban -k $chan $1- %b %r }

 Respond  
Vortex   -  Sep 29, 2005

K, I fixed it.

 Respond  
Vortex   -  Sep 29, 2005

Damn. Then I\'ll fix it.

 Respond  
RoninWarrior   -  Sep 28, 2005

i see sorry about that folks

 Respond  
Raid   -  Sep 28, 2005

ronin read the description he has edited the other one.

I like how Urza displays the adress instead of ban 1 ban 2 etc.

This doesnt work for me either.

 Respond  
RoninWarrior   -  Sep 28, 2005

Is Urza and vortex the same person? pretty similar snippets arent thay ?

 Respond  
Vortex   -  Sep 28, 2005

I added the bracket, but you don\'t really need to have the \"/ban -k $chan $1 1 $$?=\"Reason\" part a space away. It still works fine for me.

 Respond  
tank59   -  Sep 28, 2005

Your format is wrong. Plus your missing a closing bracket. This will not work until you fix the format. Should be:
..Ban1:/ban -k $chan $1 1 $$?=\"Reason\"

 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.