A Simple Blacklister ($wildsite recognition)

By `Node_ on Mar 06, 2004

A simple, easy to use user blacklist. You right-click the user you want to blacklist, go to the 'Blacklist' menu, click on 'Add user' and specify a reason. The script will then kickban the user if you are an op on the channel with the reason you specify. It will remember $wildsite, not their $nick, this way the user can't just change nickname and rejoin. It will also remember the reason you specify. When the user joins, speaks or changes nickname on a channel you are on, it will kickban them aswell. When the user parts, it will place a ban on their address. The only problem with this form of user identification, if the user is on dialup, the script won't recognise them, so you will have to re-add them to the blacklist. Copy and paste the following into your remotes section.

menu nicklist { 
Blacklist 
.Add User { 
set % [ $+ [ $wildsite ] $+ ] .blacklist on 
set % [ $+ [ $wildsite ] $+ ] .reason $$?="Enter a reason to blacklist $$1" 
if ($me isop #) { 
mode # -o $$1 
kick # $$1 % [ $+ [ $wildsite ] $+ ] .reason 
mode # +b $address($$1,1) 
} 
halt 
} 
.Del User { 
if (% [ $+ [ $wildsite ] $+ ] .blacklist != $null) { unset % [ $+ [ $wildsite ] $+ ] .blacklist | echo -a $$1 has been removed from the blacklist. } 
else { echo -a $$1 is not on your blacklist | halt } 
} 
} 
on *:JOIN:*:{ 
if (% [ $+ [ $wildsite ] $+ ] .blacklist != $null) { 
if ($nick isop #) { chanserv deop # $nick | chanserv deprotect # $nick } 
kick # $nick % [ $+ [ $wildsite ] $+ ] .reason 
mode # +b $address($nick,1) 
} 
else { halt } 
} 
on *:NICK:{ 
if (% [ $+ [ $wildsite ] $+ ] .blacklist != $null) { 
if ($nick isop #) { chanserv deop # $nick | chanserv deprotect # $nick } 
kick # $nick % [ $+ [ $wildsite ] $+ ] .reason 
mode # +b $address($nick,1) 
} 
else { halt } 
} 
on *:PART:*:{ 
if (% [ $+ [ $wildsite ] $+ ] .blacklist != $null) { 
mode # +b $address($nick,1) 
} 
else { halt } 
}

Comments

Sign in to comment.
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.