mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 03:49:27 +01:00
Merge pull request #1402 from kylef/kylef/mlock-i
Allow atheme2json to handle mlock mode removal (outside of `-t` or `-n`)
This commit is contained in:
commit
c4b7b8af3a
@ -65,8 +65,7 @@ def convert(infile):
|
||||
for flag, mode in CMODE_FLAG_TO_MODE.items():
|
||||
if flag & mlock_on != 0:
|
||||
modes.add(mode)
|
||||
for flag, mode in CMODE_FLAG_TO_MODE.items():
|
||||
if flag & mlock_off != 0:
|
||||
elif flag & mlock_off != 0 and mode in modes:
|
||||
modes.remove(mode)
|
||||
chdata['modes'] = ''.join(modes)
|
||||
chdata['limit'] = int(parts[7])
|
||||
|
Loading…
Reference in New Issue
Block a user