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:
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
|
# 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.
|
||||||
|
Loading…
Reference in New Issue
Block a user