mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +01:00
servermaps: show the uplink server name for Clientbot links
This commit is contained in:
parent
92460716d1
commit
b6bac994c6
@ -98,6 +98,10 @@ def _map(irc, source, args, show_relay=True):
|
||||
if remoteirc.has_cap('can-track-servers'):
|
||||
# Only ever show relay subservers once - this prevents infinite loops.
|
||||
showall(remoteirc, remoteirc.sid, hops=hops, is_relay_server=True)
|
||||
else:
|
||||
# For Clientbot links, show the server we're actually connected to.
|
||||
reply("%s\x02%s\x02 (actual server name)" %
|
||||
(' '*(hops+1), remoteirc.uplink))
|
||||
|
||||
else:
|
||||
# Afterwards, decrement the hopcount.
|
||||
|
Loading…
Reference in New Issue
Block a user