Kick Counter

By Celeron on Apr 16, 2010

Kick Counter ( massjoin )

On ^*:Kick:#: {
  .inc -u40 %k [ $+ [ $nick ] ]
  if ($nick == $nick) { inc -u25 %kick3 1 }
  if (%kick3 == $null) { set %kick3 0 }
  if ($nick !== $nick) { inc -u25 %kick4 1 }
  if (%kick4 == $null) { set %kick4 0 }
  if %k [ $+ [ $nick ] ] != $null { .timer $+ $nick 1 20 msg # 7  [ $nick ] 0has been kick 8 [ %k [ $+ [ $nick ] ] ] 0clones only! }
  .timerREST 1 22 msg # total clone kicked = [ $calc(%kick3 + %kick4) ] only! [ $numtok(%totalip,44) IP ... dlm 500 - 600 .]
  .timerunset 1 23 unset %totalip
}
ON *:JOIN:#: { 
  .carip
}
alias carip {
  .var %nik.msk = $gettok($mask($wildsite,4),2-3,46), %nik.check = $nick
  .inc -u7 %ipcnt [ $+ [ %nik.msk ] ] 1 
  if (%ipcnt [ $+ [ %nik.msk ] ] > 2) { 
    .signal -n get %nik.msk 
    if (%nik.msk !isin %totalip)  .set %totalip %totalip $+ $+($chr(44),*,%nik.msk,*) 
  }
}

Comments

Sign in to comment.
Bielie   -  Apr 21, 2010

true true... But some people may have problems when they use bigger values then 25. So it may be smart to get used to -eu. :D

 Respond  
Jethro   -  Apr 21, 2010

In simple English, you don't need to add -e to -u. See, -u25 gets the variable unset after 25 seconds. -e acts like nothing but a piece of useless bit.

 Respond  
Bielie   -  Apr 21, 2010

My english is not that good :P I ment what you just said.

 Respond  
Jethro   -  Apr 21, 2010

Bielie, you're misunderstanding the -e switch. -e switch means a variable is unset when you exit mirc. Besides, by adding the -e next to -u switch is redundant. If you're gonna offer your input, make sure it's not misleading.

 Respond  
Bielie   -  Apr 21, 2010

I suggest using -eu25 instead of -u25. Will help you in the future.

-eu means that it will stop when you quit MIRC.

 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.