Math mapgen fix, ip show on connect, pathfinder segfault fix