mIRC Home    About    Download    Register    News    Help

Print Thread
A Simple Clone Kicker #114226 13/03/05 04:47 AM
Joined: Mar 2005
Posts: 2
G
Gaspode Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Mar 2005
Posts: 2
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

Re: A Simple Clone Kicker #114227 13/03/05 05:20 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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
}

Re: A Simple Clone Kicker #114228 13/03/05 05:50 AM
Joined: Mar 2005
Posts: 2
G
Gaspode Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Mar 2005
Posts: 2
You're A star!!! Thanks Mate. wink

Re: A Simple Clone Kicker #114229 13/03/05 05:52 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome. grin

Re: A Simple Clone Kicker #114230 14/03/05 11:27 AM
Joined: Jul 2003
Posts: 37
P
Paladinz Offline
Ameglian cow
Offline
Ameglian cow
P
Joined: Jul 2003
Posts: 37
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
}