Merge pull request #1405 from kylef/kylef/mode-order

Make atheme2json sort channel modes
This commit is contained in:
Shivaram Lingamneni 2020-11-27 11:34:22 -08:00 committed by GitHub
commit bec88be799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ def convert(infile):
modes.add(mode)
elif flag & mlock_off != 0 and mode in modes:
modes.remove(mode)
chdata['modes'] = ''.join(modes)
chdata['modes'] = ''.join(sorted(modes))
chdata['limit'] = int(parts[7])
elif category == 'MDC':
# auxiliary data for a channel registration