mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
i`m looking for a blacklist that stocks a specified blacklisted nick/ident/host in hash and is a good coding..

thanks for helping


learn learn learn
Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
This isn't a script request forum, nor will we do your searching for you. Google is your best friend.


Those who can, cannot. Those who cannot, can.
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
i know about google if I saw one I won't create this topic.
I'm only asking for the ones who can help me so if you can`t just ignore topics like this btw saw a blacklist here but it only blacklist nick. but asking for a hotmask blacklist.

thanks again for the info about google didn't knew about that laugh


learn learn learn
Joined: Jul 2006
Posts: 107
L
Vogon poet
Offline
Vogon poet
L
Joined: Jul 2006
Posts: 107
Are you quite sure you read this post carefully? Good Custom Blacklist

If you read the requirements listed in the first post, I think you'll find they are more than you ask.

You only need to read the first page of posts. After that, imo,
it should have been a different thread.


LonDart
Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
Try to start making it yourself. Making a blacklist is pretty simple, but frowned upon in most channels (unless you own them of course, but you should consider what happens when two ops have each other on a blacklist, things get ugly fast).

Code:
/help bankmask
/help hash tables

I'm pretty sure you know how to make it yourself. A hostmask blacklist just replaces the 'if ($hget(blacklist,$nick)) { ban ban }' to a simple while loop, resembling somthing like:
Code:
  var %x = 1
  while ($hget(blacklist,%x).item) {
    var %v1 = $v1
    if (%v1 iswm $fulladdress) {
      ban ban
      return
    }
    inc %x
  }


Those who can, cannot. Those who cannot, can.
Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
I've made a small "demonstration". Edit it however you like.
Code:
on @*:join:#: {
  _blc
  var %x = 1
  while ($hget(blacklist,%x).item) {
    var %v1 = $v1
    if (%v1 iswm $fulladdress) {
      _doblacklist $chan $nick %v1 $hget(blacklist,%v1)
      return
    }
    inc %x
  }
}
alias -l _doblacklist {
  mode $1 +b $3
  kick $1-2 Blacklisted: $4-
}
alias ablacklist {
  _blc
  hadd blacklist $$1 $iif($2-,$2-,BOOM!)
  echo -ac info * $1 added to the blacklist: $iif($2-,$2-,BOOM!)
  _bls
}
alias rblacklist {
  _blc
  hdel blacklist $$1
  echo -ac info * $1 removed from the blacklist.
  _bls
}
alias blacklist {
  _blc
  echo -ac info * Number of people currently in the blacklist: $hget(blacklist,0).item
  var %x = 1
  if ($hget(blacklist,%x).item) {
    echo -ac info * (3Num ) 7Address/Wildmatch                                  5Reason
  }
  while ($hget(blacklist,%x).item) {
    var %v1 = $v1
    echo -ac info * $+($chr(40),03,$mklen(%x,4),,$chr(41),07) $mklen(%v1,50) $+ 05 $hget(blacklist,%v1) 
    inc %x
  }
  echo -ac info * End of blacklist.
}
alias -l _bls {
  hsave -b blacklist $qt($scriptdirblaclist.bl)
}
alias -l _blc {
  if (!$hget(blacklist)) {
    hmake blacklist 10
  }
  if ($isfile($scriptdirblacklist.bl)) {
    hload -b blacklist $qt($scriptdirblaclist.bl)
  }
}
on *:start: {
  _blc
}
alias mklen {
  var %len = $2
  tokenize 32 $1
  while ($len($strip($1-)) < %len) {
    tokenize 32 $1- $+ $chr(160)
  }
  return $1-
}

Untested.


Those who can, cannot. Those who cannot, can.
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
and that post showed nick blacklist

not hotmasks

that's the one i`m talking about


learn learn learn
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
ok sorry for posting posts like this i`ll try make one laugh

btw your code ain't kicking


learn learn learn

Link Copied to Clipboard