Jump to content
chain

masskick

Recommended Posts

  • Administrators
Posted
on *:TEXT:*:#: {
  if (($nick !isop $chan) && ($me isop $chan)) {
    if ($mhighlightcheck($chan,$1-) > 5) {
      ban -k $chan $nick 3 [AutoKick] Mass Highlight.
    }
  }
}

alias mhighlightcheck {
  ;$1 chan
  ;$2 text
  ;returns number of highlighted nicks
  ;
  var %count = 0, %x = 1, %text = $replace($strip($2-),$chr(44),$chr(32)) 
  while ($numtok(%text,32) > 0) {
    if ($gettok(%text,%x,32) ison $1) {
      inc %count
    }
    else {
    }
    var %text $remtok(%text,$v1,0,32)
  }
  return %count

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...