Kick+ban Inviter/Flooder

By h3lp on Mar 07, 2005

This snippet is an advertiser and flooder detector which detects in Query and Channel.

This snippet kick and ban the detected nick from all channel you are in and OP.

To prevent kicking someone you protect, add the user in a friend list which u may add the user in channel nicklist or in query "popups".

It will auto unban the user after 5 minutes, in all channel.

The Flood protection only detect 5 row in 3 seconds. So, don't wonder why doesn't all flooder this snippet kick.

menu nicklist,query {
  Protect
  .List Friend:hlst
  .-
  .Add as A Friend:/auser MFnd $$1
  .Del as A Friend:/ruser MFnd $$1
}
on *:text:*:*:{
  if ($level($nick != MFnd)) {
    $iif($tchk($1-),ka $v1 $regml(1),inc -u3 $+(%,flood.,$nick,.,$target)) | $iif($($+(%,flood.,$nick,.,$target),2) >= 5,ka Excess Flooding)
  }
}
on *:notice:*:*:{
  if ($level($nick != MFnd)) {
    $iif($tchk($1-),ka $v1 $regml(1),inc -u3 $+(%,flood.,$nick,.,$target)) | $iif($($+(%,flood.,$nick,.,$target),2) >= 5,ka Excess Flooding)
  }
}
on *:invite:#: $iif($level($nick != MFnd),ka Invting Detected)
alias tchk $iif($regex($1-,/(?:^| )(\/server|(http+(s\:|\:)+\/\/)|(w{3}\.{1}+((\w|\d).*)+\.{1}+\w{2,3}\b)|(#(\w|\d)\S+)|\/join|\/j)/gs),return Advertising,return 0)
alias ka {
  ignore -u5 $nick | var %n = 1, %c, %kb
  while (%n <= $comchan($nick,0)) {
    %c = $comchan($nick,%n)
    if ($me isop %c) && ($nick !isop %c) && ($nick ison %c) { kick %c $nick $1- | ban -u300 %c $nick 2 | %kb = %kb %c }
    inc %n
  }
  $iif(%kb,echo -a 4---> Detected  $+ $nick $+  Inviting. Kick/Ban Perform on  $+ %kb $+ )
}
alias hlst { window @Friend | var %n = 1 | while (%n <= $ulist(*,0)) { if ($level($ulist(*,%n)) == MFnd) echo @Friend $ulist(*,%n) | inc %n } }

Comments

Sign in to comment.
[HANZam]   -  Jun 18, 2009

Jethro_

thanks for the help.. it really does work.

 Respond  
blitzz   -  Jun 17, 2009

oic.

 Respond  
Jethro   -  Jun 17, 2009

@blitzz,I meant comment, as in sending my feedback upon something?
@Automotive, have you heard of 'constructive criticism?" It's rude and impolite of you to belittle someone's snippet.

 Respond  
Automotive   -  Jun 17, 2009

Useless

 Respond  
blitzz   -  Jun 17, 2009

Also, to "comment" on this script..

Did you mean "command" or...

 Respond  
Jethro   -  Jun 17, 2009

Also, to comment on this script, why made kick and ban separately when you could have used ban with the -k switch?

 Respond  
Jethro   -  Jun 17, 2009

I have a question, Can u give me an exact sample on how not to kick some friend in the channel.
[HANZam], when you right click on your mirc nicklist or query, you will spot 'Protect' followed by 'Add as a friend' and 'del as a friend '
click on 'add as a friend' while highlight a chosen nick to protect your friends from being kicked. This goes the same for 'del as a friend' when you want to remove a nick from being protected.
if an operator gives an adverticement of any website or channel, how will the script warn him or kick him out of the channel.Change this line

if ($me isop %c) && ($nick !isop %c) && ($nick ison %c) {

to this one:

if ($me isop %c) && ($nick ison %c) {
 Respond  
blitzz   -  Jun 16, 2009

I think better change this.

on :text::*:{

TO

on *:text:#:{ (Recommended)


on :notice::*:{

TO

on :notice::#:{ (Recommended)


Reason

  1. If not it will activated to all channel you in.
  2. If the channel sets for quiz/trivia, the players really don't like it.
  3. Also when chatting, some people/founder don't wanna this sets to their channel.
 Respond  
[HANZam]   -  Jun 16, 2009

and also if an operator gives an adverticement of any website or channel, how will the script warn him or kick him out of the channel.

can u help?

 Respond  
[HANZam]   -  Jun 15, 2009

I like the script so much, is so very simple and it gives a warning. But I have a question, Can u give me an exact sample on how not to kick some friend in the channel.
can u enumerate the step's one-by-one..

thnks, and more power to all...

 Respond  
PoiXon   -  Mar 12, 2005

Bamargera, when u say \"Ripped\" Send the Link to The other script u have found!

 Respond  
nobody   -  Mar 09, 2005

Ripped? Doesn\'t look it. Anyway, nice job, h3lp.

 Respond  
h3lp   -  Mar 08, 2005

i\'m really dissapointed. do you have any strong proff Bamargera? i don\'t think so because, I DO IT MY SELF!! Watch your words.

 Respond  
Bamargera   -  Mar 08, 2005

Ripped.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.