Blacklist

By D34th on Nov 27, 2009

This is my Black list its really really simple i made it for my gf but modifyed the code for all users so it didnt have her name all over it lol so yeah i hope it helps someone it works on a text file called shitlist.txt leave comments / suggestions

Dialog Blist {
  Title "Blacklist"
  Size -1 -1 81 66
  option dbu
  Button "Add",1, 1 1 79 12
  Button "Del",2, 1 14 79 12
  Button "View",3, 1 26 79 12
  Button "Done",4, 1 38 79 12
  Text "Blacklist By Death Pwn all that fuck with u",5, 1 50 80 12
}
Menu Channel {
  .Shitlist { dialog -m Blist Blist }
}
on *:Dialog:Blist:Sclick:4: {
  Dialog -x $Dname $Dname
}
on *:Dialog:Blist:Sclick:3: {
  run shitlist.txt
}
on *:Dialog:Blist:Sclick:2: {
  Write -d Shitlist.txt $$?="Nick To Delete"
}
on *:Dialog:Blist:Sclick:1: {
  Write Shitlist.txt $$?="Who To Add"
}
on *:join:#: {
  set %shitlisted $nick
  if ($nick == $read(shitlist.txt,r,%shitlisted)) {
    mode $chan +b $address($nick,4)
    kick $chan $nick Pwned By $me 
  }

Comments

Sign in to comment.
D34th   -  Dec 18, 2010

Yes i realize this its actually from a long time ago lol ill update it eventually.

 Respond  
Pass   -  Dec 15, 2010

Aside from the various other suggestions/comments, there's a missing bracket at the very end

 Respond  
H3xable   -  Dec 15, 2010

if ($did = 2) Write -d Blacklist.txt $$?="Nick To Delete"

is a fail it will still delete a random name if you dont type the exact name..

 Respond  
Midnight_Lynx   -  Feb 20, 2010

LOL Jethro_.. xD

 Respond  
Jethro   -  Jan 27, 2010

Can we say fail?You just did.

 Respond  
Midnight_Lynx   -  Jan 27, 2010

Can we say fail?

 Respond  
gooshie   -  Dec 01, 2009

Master-Of-Death,
That's not really the correct way to create
an identifier. You simply made a command and
stuck a '$' on the front of it. Typically an
identifier returns a result as does $me.

alias add .auser -a blist $address($1,2)
alias del .ruser $address($1,2)
on @blist:JOIN:#:ban -k # $nick 2 Pwned By $me
 Respond  
Master-Of-Death   -  Dec 01, 2009

You have a point, hmm this may be better...

alias add { 
.auser -a Shoot $address($2,3)
}
alias del { 
.ruser $address($2,3)
}
on @*:JOIN:#:{ $check
if (%check == yes) { $kill($nick) 
}
}
alias check { .set %check $iif($nick iswm $user($address($nick,3),yes,no) 
}
alias kill {
raw -q kick # $nick Blacklist
.mode # +b $address($nick,3)
}

I think this works but it needs abit more testing, just getting used to using aliases as identifiers.

 Respond  
Testor   -  Nov 30, 2009

BanMask 4, imo, is a bad banmask compared to 3/2, as you're banning people that may have similar hosts, from same region, etc :.

 Respond  
gooshie   -  Nov 29, 2009

Master-Of-Death,
With /ignore you can set an exclude. If the control
tab of address book and notify supported user levels
it would sorta complete user level support. Right now
besides whatever you want to script you can use user
levels in Nick Colors and DCC trusted.

Try to set an ignore on user level enemy
Try to set an exclude on user level friend
How about Notify on user level friend

 Respond  
Master-Of-Death   -  Nov 29, 2009

what do you mean by exclude? and I think i could probably do an ignore depending on what your trying to ignore...

 Respond  
gooshie   -  Nov 29, 2009
Menu Channel {
  .Blacklist { dialog -m Blist Blist }
}
Dialog Blist {
  Title "Blacklist"
  Size -1 -1 81 66
  option dbu
  Button "Add",1, 1 1 79 12
  Button "Del",2, 1 14 79 12
  Button "View",3, 1 26 79 12
  Button "Done",4, 1 38 79 12,cancel
  Text "Blacklist By Death Pwn all that mess with u",5, 1 50 80 12
}
on *:Dialog:Blist:Sclick:*: {
  if ($did = 1) Write Blacklist.txt $$?="Who To Add"
  if ($did = 2) Write -d Blacklist.txt $$?="Nick To Delete"
  if ($did = 3) run Blacklist.txt
}
on @*:join:#: {
  if $read(blacklist.txt,w,$nick) {
    ban -k # $nick 4 Pwned By $me 
  }
}

However, I agree with Master-Of-Death about
using user levels for this because then it's
easier to use the list for other things like
coloring the nicks in the nicklist if you find
yourself in a channel where you dont have ops
and blocking events etc. (Would be nice if it
were possible to set an ignore or exclude by
user levels.)

 Respond  
D34th   -  Nov 28, 2009

Yeah i just threw it togheter quickly i will update it eventually and thank you all for your comments and suggestions they are very apreicated

 Respond  
Armand   -  Nov 28, 2009

@Ghost-writer
A hash table would be pointless. You'd have to make the table, then load the file, add/delete nicks and such and then save. It'd require more time to process the hash table code than the code as it is. Besides, live hash tables cannot be viewed easily without saving to a file. Although, using addresses would be a tad better.

@Master-Of-Death
Looks like you need to read up on aliases before you attempt this on your own.

@D34th
I'll rate it when I get the time, but nice usage of a dialog, as those are always a pain to do layouts by hand. I say 8/10.

 Respond  
Lord-Harlot   -  Nov 28, 2009

@Master-Of-Death
He made this a dialog so that it's easy to use. It takes two seconds to code an alias like that. Also you would use ".auser -a shoot $1" "/add Master-Of-Death". Also ".ruser $2" instead of adding it to a whole new list.

@D34th
It's a good script. You should really look up the persons address to keep them out but if they always use the same nick there's no problem.

 Respond  
Master-Of-Death   -  Nov 28, 2009

hmm seems like a pointless dialog to me could just use:

alias add { 
.auser -a shitlist $2
}
alias del {
.auser -a cleanlist $2
}
on shitlist:JOIN:#:{ if ($me isop #) { 
.ban -k $nick pwned by $me
}
}

i prefer that...and it's simple to edit.

 Respond  
cessil   -  Nov 28, 2009

actually a read would do just fine in this case because it doesn't write and read heaps unless there's like 50+ names in the shitlist.txt

 Respond  
SnoooP   -  Nov 27, 2009

Ghost-Writer, care to give us an example?

 Respond  
Ghost-writer   -  Nov 27, 2009

lol pretty basic, should make it work with address and hash table would be a lot better.

 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.