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
+1 -1
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