3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +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 # This is a relay server - display the remote map of the network it represents
relay_server = serverlist[leaf].remote relay_server = serverlist[leaf].remote
remoteirc = world.networkobjects[relay_server] remoteirc = world.networkobjects[relay_server]
# Only ever show relay subservers once - this prevents infinite loops. if remoteirc.protoname != 'clientbot':
showall(remoteirc, remoteirc.sid, hops=hops, is_relay_server=True) # Only ever show relay subservers once - this prevents infinite loops.
showall(remoteirc, remoteirc.sid, hops=hops, is_relay_server=True)
else: else:
# Afterwards, decrement the hopcount. # Afterwards, decrement the hopcount.