3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 13:29:27 +01:00

atheme2json: translate channel flag +a to the corresponding amode

This commit is contained in:
James Lu 2020-12-04 01:00:28 -08:00
parent 22b0263c5b
commit 2dcb084e0f

View File

@ -127,6 +127,8 @@ def convert(infile):
chdata['amode'][username] = 'q' chdata['amode'][username] = 'q'
elif 'q' in flags: elif 'q' in flags:
chdata['amode'][username] = 'q' chdata['amode'][username] = 'q'
elif 'a' in flags:
chdata['amode'][username] = 'a'
elif 'o' in flags or 'O' in flags: elif 'o' in flags or 'O' in flags:
chdata['amode'][username] = 'o' chdata['amode'][username] = 'o'
elif 'h' in flags or 'H' in flags: elif 'h' in flags or 'H' in flags: