tglogo.png
0 LIKES

Snippet


Duplicate Gate Kicker

In Category Buzzen Posted by err0r On 04/13/10
Tags: gate clone kick buzzen err0r 

This was a snippet that was requested. It will ban/kick if the user has more than 2 nicks in the room with the same gate. Note depending on your connection you may wish to add a queue system to the kick part so you do not get disconnected for excess flood
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
  }
}


Comments 2

CharmedOne - Thursday, 5 August, 2010
I will submit code redone to error I fixed it to your request.
Toland - Monday, 7 June, 2010
It would be nice if there is an On and Off switch and option to put them in the shitlist

Please note that on our website we use cookies necessary for the functioning of our website, cookies that optimize the performance. To learn more about our cookies, how we use them and their benefits, please read our Cookie Policy.
I Understand