Advertisement
WraithRIOT

BlackList Fix For Toniii

Apr 12th, 2011
716
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.12 KB | None | 0 0
  1.  
  2. Alias Blacklist { Dialog -m Dblist DBlist }
  3. dialog DBlist {
  4.   title "Black List"
  5.   size -1 -1 162 123
  6.   option dbu
  7.   box "", 1, 2 19 156 98
  8.   edit "", 2, 2 4 82 10, autohs
  9.   button "Add", 3, 85 3 33 12
  10.   button "Delete", 4, 121 3 33 12
  11.   list 5, 5 26 149 101, hsbar vsbar
  12. }
  13. on *:Dialog:DBlist:*:*:{
  14.   if ($devent == InIt) {
  15.     var %skid = 1
  16.     while (%skid <= $lines(Pwned.txt)) {
  17.       did -a $dname 5 $read(Pwned.txt,%skid))
  18.       inc %Skid  
  19.     }
  20.     Did -z $dname 5
  21.   }
  22.   If ($devent == Sclick) {
  23.     If ($did = 3) {
  24.       Write Pwned.txt $did(2)
  25.       Did -a $dname 5 $did(2)
  26.       Did -z $dname 5
  27.     }
  28.     If ($did = 4) {
  29.       Write -dl $did(5).sel Pwned.txt
  30.       did -d $dname 5 $did(5).sel
  31.     }
  32.   }
  33. }
  34. On *:Snotice:*Client connecting*:{
  35.   Set %Ip.Possible.Blist $Remove($Gettok($10,1,40),$chr(41),$chr(41))
  36.   Set %Ip.Possible.Blist $Remtok(%Ip.possible.blist,$Gettok(%Ip.possible.blist,1,64),1,64)
  37.   Set %Ip.Possible.Blist $Remove(%Ip.Possible.Blist,XXXXX)
  38.   If (%Ip.Possible.Blist == $Read(Pwned.txt,r,%Ip.Possible.Blist)) { Kill $9 14,1(4DarkSector iRC15: You Are On My BlackList14) }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement