Jump to content

Code Request


CharmedOne

Recommended Posts

basically you want a clone scanner? when a person enters it checks to see how many nicks in the room have the same gate and if it's 3 or more it boots all nicks with the same gate?

Link to comment
Share on other sites

I would suggest some form of queued send for when there are a lot that all join together but this worked for me

 

on !*:JOIN:#:{ 
  if ($ialchan($address($nick,1),$chan,0) >= 3) && ($me isop $chan) { 
    if (!%cban) { access $chan ADD DENY $address($nick,1) 60 : Too many clones | set %cban on }
    var %c 1
    while ($ialchan($address($nick,1),$chan,%c)) {
      kick $chan $gettok($v1,1,33) Too Many Clones
      inc %c
    }
    unset %cban
  }
}

Link to comment
Share on other sites

 

Well i seen some trouble in a rioom i hung in & travis reason i said 3 or 4 nicks is at times buzzen messes up & chatters will have at least two of the same nicks in the room at one time didnt want to kick the chatters , just the trouble that comes in under 3 or 4 & even 5 nicks at times all with same gate number tho some of the nicks are different than the others. Oh & thanks error.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...