mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-11 06:29:29 +01:00
Merge pull request #1405 from kylef/kylef/mode-order
Make atheme2json sort channel modes
This commit is contained in:
commit
bec88be799
@ -67,7 +67,7 @@ def convert(infile):
|
|||||||
modes.add(mode)
|
modes.add(mode)
|
||||||
elif flag & mlock_off != 0 and mode in modes:
|
elif flag & mlock_off != 0 and mode in modes:
|
||||||
modes.remove(mode)
|
modes.remove(mode)
|
||||||
chdata['modes'] = ''.join(modes)
|
chdata['modes'] = ''.join(sorted(modes))
|
||||||
chdata['limit'] = int(parts[7])
|
chdata['limit'] = int(parts[7])
|
||||||
elif category == 'MDC':
|
elif category == 'MDC':
|
||||||
# auxiliary data for a channel registration
|
# auxiliary data for a channel registration
|
||||||
|
Loading…
Reference in New Issue
Block a user