mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 13:09:23 +01:00
servermaps: skip clientbot networks (servers aren't properly tracked)
This commit is contained in:
parent
438838f81d
commit
13a42c17b2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user