nav.gif Home » Snippets » Simple Blacklist

ammenul.gif
ammenur.gif
Please Register/Login to enhance your access of our site and services. We support Twitter and Facebook logins. Logging in will reduce the amount of advertisments.
ammenul.gif
ammenur.gif


ammenutopl.gif
TG007 Snippet
ammenutopr.gif
Simple Blacklist
Category: Sparkpea

About
This is a very simple blacklist. Uses @window for easy management.

Requested by Johnson for Sparkpea. Feel free to edit/improve this.


menu nicklist {
  BlackList Options
  .$iif($me !isop $chan,$style(2)) Blacklist User: { auser Blacklisted $address($$1,1) $$1 | access $chan ADD DENY $address($$1,1) 60 : $$1 Blacklisted | kick $chan $$1 Blacklisted }
  .Manual Add: { var %ba $?="Add Gate To Blacklist" | $iif(%ba != $null,auser Blacklisted %ba) }
  .View Blacklist: { getblacklist }
}
menu @Blacklist { $iif($sline(@Blacklist,1).ln < 2,$style(2)) Remove Selected: bl.remove }
on Blacklisted:JOIN:#: { if ($me isop $chan) { access $chan ADD DENY $address($nick,1) 60 : $nick Blacklisted | kick $chan $nick Blacklisted } }
alias getblacklist {
  $iif(!$window(@Blacklist),window -blk -t22 +benstx @Blacklist,/window -a @Blacklist)
  clear @Blacklist | aline @Blacklist Gate $chr(9) Nick
  var %f 1
  while ($ulist(*,Blacklisted,%f)) {
    aline @Blacklist $v1 $chr(9) $ulist(*,Blacklisted,%f).info
    inc %f
  }
}
alias bl.remove {
  var %s 1
  while ($sline(@Blacklist,%s).ln) {
    .ruser Blacklisted $gettok($line(@blacklist,$v1),1,32)
    inc %s
  }
  getblacklist
}
 


Comments

Johnson Posted on: 4/12/10
avatarA very good snippet and really works well and thank you err0r

err0r Posted on: 4/12/10
avataryou are welcome

d33j4y Posted on: 4/12/10
avatarThis is way better than the one I wouldve submitted as mine was messy lol!!!

Paige Posted on: 4/21/10
avatarYa thanks a lot error, i put it in the sparkpea script im remaking.

[::X-System::] Posted on: 5/1/10
avataryou could use on @!*:JOIN:#:
the @ in the event means it'll only trigger if u're op'd, now you wont need if ($me isop #) any more ;)

HaMaDa_Mafia Posted on: 9/4/10
avatarthanks a lot error

Sorry you must register and log-in to post comments
ammenul.gif
ammenur.gif
ammenutopl.gif
Info
ammenutopr.gif
Snippet Information
Creator:err0r
Date Added:4/12/10
Last Updated:9/5/10
Tags:blacklist kicklist autoban
Problem?Report Snippet
ammenul.gif
ammenur.gif



27 user(s) currently browsing site (1 members, 26 guests, 0 anonymous)

12 Users in IRCommunity
inføвøт, err0r, «Chãin™», ωαяяιοя™, ♥fiestýβสbỳ♥, båbyġurł, Enya, Timeless, «·Ħåĺø·», ﴾Ɣ﴿ⓨⓢⓣⓘⓒ★§ⓟⓔⓛⓛ, danger , [☠] Ƙʀʏᴘтιӿ [☠]



lhfooter.gif
TechDesigns007.com | Valid XHTML 1.0 | Valid CSS | Load Time: 0.045321 sec(s)
rfooter.gif


Latest Alert: 10.14.2011 mIRC 7.22 released
oldline
oldline
oldline
oldline