mIRC Homepage
Posted By: giannis123 KICK / BAN script - 11/10/06 11:03 AM
I need a script to do the following:
On join, if ip is xxx.xxx.xxx.xxx. then kick & ban the person.
Posted By: AYEHAN Re: KICK / BAN script - 11/10/06 12:09 PM
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
Posted By: Riamus2 Re: KICK / BAN script - 11/10/06 01:31 PM
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.
© mIRC Discussion Forums