mIRC Homepage
Posted By: Gaspode A Simple Clone Kicker - 13/03/05 04:47 AM
Hi All, could someone please help me with a very simple clone kicker

I have sort of worked out how to make a very small dialog with a few check buttons, now I would like it so that after selecting the ckeck box, the clone kicker is enabeld.

All I want it to do is if there are more than 2 clones per dns it will kick the third on and ban them. ie.


· · Joins : greywolf_assamite (XXX@zanet.org.za)

· · Joins : assamite (XXX@zanet.org.za)

· · Joins : greywolf (XXX@zanet.org.za)

· · Kicks : greywolf was kicked from #channel by Gaspode (No Clones Allowed)

Thankx in advance
Gaspode
Posted By: SladeKraven Re: A Simple Clone Kicker - 13/03/05 05:20 AM
Code:
alias clone {
  if ($ial == $false) { 
    .ial on
  }  
  if ($chan($chan).ial == $false) { 
    who $chan 
    return 
  }
  if ($ialchan($wildsite,$chan,0) >= 3) {
    kick $chan $nick Clone nicks exceeded.
  }
}

On @*:Join:#YourChannelName: {
  clone
}
Posted By: Gaspode Re: A Simple Clone Kicker - 13/03/05 05:50 AM
You're A star!!! Thanks Mate. wink
Posted By: SladeKraven Re: A Simple Clone Kicker - 13/03/05 05:52 AM
You're welcome. grin
Posted By: Paladinz Re: A Simple Clone Kicker - 14/03/05 11:27 AM
I'd use a ban not a kick only, you are liable to find yourself disconecting for excess flood or continually kicking people over and over if they have rejoin chan when kicked enabled (3 or 4 sets of clones joining will leave you kick flooding forever).

using SladeKraven's code + a 20 second ban to stop them rejoining

Code:
 
alias clone {
  if ($ial == $false) { 
    .ial on
  }  
  if ($chan($chan).ial == $false) { 
    who $chan 
    return 
  }
  if ($ialchan($wildsite,$chan,0) >= 3) {
    ban -u20 $chan $nick
    kick $chan $nick Clone nicks exceeded.
  }
}

On @*:Join:#YourChannelName: {
  clone
}
© mIRC Discussion Forums