if $regex($sorttok(%1 %2 %3 %4 %5 %6,32),/(\S+) \1/) { echo -a Not unique }

I suppose it's better using $lf because that won't appear in a string in IRC, which is better as a delimiter than a space, since a space can be part of a single input.

I guess if it's certain that %1 %2 ... are always single words, you could use what I posted, and preferably the $lf way if a single input can contain multiple words, because then part of one input might match a part of another input.

Greets