Tiny Ban View/Remover

By Kurama_ on Aug 27, 2009

I haven't scripted in like forever so I've forgoten a few things about mIRC scripting. Anyway here's a little Ban View/Remover script. You just type "Banlist" in the channel, you have to be set as owner in your bots user list (ie: owner:James_G!@), and the bot will tell you how many bans there are on the list. Then type "View ban " to see a certain ban on the list. You can also delete the bans by typing "Del ban ". A few problems with this is that even if there are like only 2 bans on the list, the owner can type "del ban 10" or any other higher numbers and the bot will delete a ban from the list. Another problem is that I can't figure out how to get the bot to delete all bans from the list. So if anyone has any suggestions on how to get that to work, post them and I'll add it to the script asap. I'll also give them credit for there contribution. So thanks, and enjoy I guess. =P

;#########################
;# Ban Viewer/Remover    #
;# By James_G(aka Hades) #
;# irc.Rizon.net #Hades  #
;#########################
on @owner:TEXT:Banlist:#: {
  msg $chan 7 There is12 $ibl($chan,N) ban(s)7 on this channel. Type 12" View Ban <ban number> " 7to see info on the address banned.
}
on @owner:TEXT:View Ban *:#: {
  set %bannumber $3
  msg $chan 4 %bannumber $+ :12 $ibl($chan,%bannumber) $+ . 7This ban was set by:12 $ibl($chan,%bannumber).by 7on12 $ibl($chan,%bannumber).date $+ .
}
on @owner:TEXT:Del Ban *:#: {
  set %delban $ibl($chan,%bannumber)
  mode $chan -b %delban | .timer 1 1 msg $chan 7The requested ban has been removed.
} 

Comments

Sign in to comment.
Korvin   -  Aug 29, 2009

on @owner:TEXT:View Ban *:#: {
set %bannumber $ibl($chan,N)
while %bannumber {
msg $chan 4 %bannumber $+ :12 $ibl($chan,%bannumber) $+ . 7This ban was set by:12
dec %bannumber
}
$ibl($chan,%bannumber).by 7on12 $ibl($chan,%bannumber).date $+ .
}

 Respond  
Kurama_   -  Aug 29, 2009

Thanks. :D

 Respond  
Ghost-writer   -  Aug 29, 2009

ehhh, i could just double click the background and see it. But good effort :) could really help a lot of newbies with stuff related to this.

 Respond  
Kurama_   -  Aug 28, 2009

Wow..like really..no comments? Help? Anything? :<

 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.