Howcome this works for $chan but not for $query ?
echo -i30 14 $+ $timestamp $+ $str( ,$calc(15 - $len($nick($query,$nick).pnick)))
In the query chat the nicknames are not calculated to end all on the same point after timestamp.
They all start at the same point.
Changing $query to $chan and using the code for a channel does work.