3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 19:52:53 +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
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.
s += '(no relays yet)'