mIRC Home    About    Download    Register    News    Help

Print Thread
#161794 11/10/06 11:03 AM
Joined: Oct 2006
Posts: 11
G
Pikka bird
OP Offline
Pikka bird
G
Joined: Oct 2006
Posts: 11
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
Joined: Oct 2006
Posts: 2
A
Bowl of petunias
Offline
Bowl of petunias
A
Joined: Oct 2006
Posts: 2
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


I Am LOVE But You Can Call Me AYEHAN
#161796 11/10/06 01:31 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard