It\'s a good idea but I\'d rather use $reptok instead of $replace. The $iif($chan,$v1,$nick) can also be changed to $target.