3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

relay: sort channel links in LINKED output

This commit is contained in:
James Lu 2016-01-20 07:14:49 -08:00
parent 06d22722dc
commit f25c260937

View File

@ -1282,7 +1282,7 @@ def linked(irc, source, args):
continue continue
if v['links']: # Join up and output all the linked channel names. if v['links']: # Join up and output all the linked channel names.
s += ' '.join([''.join(link) for link in v['links']]) s += ' '.join([''.join(link) for link in sorted(v['links'])])
else: # Unless it's empty; then, well... just say no relays yet. else: # Unless it's empty; then, well... just say no relays yet.
s += '(no relays yet)' s += '(no relays yet)'