3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

servermaps: skip clientbot networks (servers aren't properly tracked)

This commit is contained in:
James Lu 2016-09-24 16:36:10 -07:00
parent 438838f81d
commit 13a42c17b2

View File

@ -78,8 +78,9 @@ def _map(irc, source, args, show_relay=True):
# This is a relay server - display the remote map of the network it represents
relay_server = serverlist[leaf].remote
remoteirc = world.networkobjects[relay_server]
# Only ever show relay subservers once - this prevents infinite loops.
showall(remoteirc, remoteirc.sid, hops=hops, is_relay_server=True)
if remoteirc.protoname != 'clientbot':
# Only ever show relay subservers once - this prevents infinite loops.
showall(remoteirc, remoteirc.sid, hops=hops, is_relay_server=True)
else:
# Afterwards, decrement the hopcount.