Simple, fast clone detector (requested by Metal-Maniac-Mat). When 2 people join with the same IP, it notices you in your active window.
Put this in your remotes (alt+r) as a new file (File->New).
EDIT: Added a timestamp.
EDIT: Changed method to use a variable in the loop, rather than evaluating an identifier each time. This makes it faster on big searches.
on *:JOIN:*: {
var %ii $ialchan($wildsite,$chan,0)
if (%ii > 1) {
var %i 1
while (%i <= %ii) {
tokenize 32 $1- $ialchan($wildsite,$chan,%i).nick
inc %i
}
echo -a 12 $+ $timestamp 4Clones12 detected in4 $chan $+ :12 $1- (4 $+ $wildsite $+ 12)
}
}
If you\'d like to send a message to the channel the clone(s) enter(s), rather than echoing it to yourself, use this code:
on *:JOIN:*: {
if ($ialchan($wildsite,$chan,0) > 1) {
var %i 1
while ($ialchan($wildsite,$chan,%i)) {
tokenize 32 $1- $ialchan($wildsite,$chan,%i).nick
inc %i
}
msg $chan 4Clones12 detected!12 $1- (4 $+ $wildsite $+ 12)
}
}