Fix calculation of distance between clients

This fixes move by direction

Signed-off-by: Uli Schlachter <psychon@znc.in>