Skip to content
Buzzen Chat Network

Code Request

A TG007 community discussion started by CharmedOne.

Discussion 6 posts
Page 1 of 1
Open
Topic #14273 · 6 published posts · 1,869 views

 

 

I was wanting a code that kicked when 3 nicks enter & they all have the exact same gate number wasnt sure how to go about coding it so I thought id post my request. thanks :pizza:

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?

Get information about ircWx here

I'm wondering, is two nicks cloned ok, but three is too much?

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
  }
}

Edited Apr 12, 2010 10:30 PM by err0r

Get information about ircWx here

 

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.

you are welcome

Get information about ircWx here