mIRC Home    About    Download    Register    News    Help

Print Thread
#161794 11/10/06 11:03 AM
G
giannis123
giannis123
G
I need a script to do the following:
On join, if ip is xxx.xxx.xxx.xxx. then kick & ban the person.

#161795 11/10/06 12:09 PM
A
AYEHAN
AYEHAN
A
on *:join:#:if ($me isop $chan) && ($level($nick) = black) { .ban $chan $nick | .kick $chan $nick BlackListed %e

For Blaclisted nick and now for Blacklisted IP

on *:join:#:if ($me isop $chan) && (*219.95.*.* iswm $wildsite ) { ban -u3600 $chan *!*@219.95.* | kick $chan $nick Banned: dd

#161796 11/10/06 01:31 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Hm.. it appears as though you cut and pasted this from another script. %e isn't defined, you have no closing }'s and what's dd supposed to be? Also, you don't need the isop check; @ does that automatically.
Code:
on @*:join:#: {
  if ([color:red]IP.IP.IP.IP[/color] isin $address($nick,2)) { 
    ban -ku300 $chan $nick 2
  }
}


Replace the red with the IP or DNS Host.

Another option would be to use your user list and put everyone who is banned into there under a level of banned...

Code:
on @banned:join:#: {
  ban -ku300 $chan $nick 2
}


Use /guser or manually add the users to the user list.

Here is a /guser example:

/guser banned NICK 2

Just replace the blue with the person's nick if they are on the channel. If they aren't on the channel, you should either manually add it in the same format. Try /guser on someone to see how it is formatted and then set the format up the same way.


Link Copied to Clipboard