simple check cloners join

By naja on Apr 11, 2005

check clones on join and show clones nicks

on *:join:#:{ 
  if ($nick != $me) { 
    unset %clons.nick
    if ($ialchan($mask($fulladdress,2),#,0) > 1) {
      set %i $ialchan($mask($fulladdress,2),#,0)
      while (%i) {
        if (%clons.nick != $null) { set %clons.nick %clons.nick , $ialchan($mask($fulladdress,2),#,%i).nick }
        else { set %clons.nick $ialchan($mask($fulladdress,2),#,%i).nick }
        dec %i
      }
      echo $color(join) # [4x $+ $color(join) $+ ] Detected $ialchan($mask($fulladdress,2),#,0) clones from ip $mask($fulladdress,2) ::: %clons.nick
    }
  }
}

Comments

Sign in to comment.
DarthReven   -  Apr 20, 2005

why not just make %clons.nick into a local variable

 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.