mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-24 12:59:33 +01:00
fix xop levels for anope
This commit is contained in:
parent
02096134e4
commit
2615b15cc4
@ -11,6 +11,18 @@ AnopeObject = namedtuple('AnopeObject', ('type', 'kv'))
|
|||||||
MASK_MAGIC_REGEX = re.compile(r'[*?!@]')
|
MASK_MAGIC_REGEX = re.compile(r'[*?!@]')
|
||||||
|
|
||||||
def access_level_to_amode(level):
|
def access_level_to_amode(level):
|
||||||
|
# https://wiki.anope.org/index.php/2.0/Modules/cs_xop
|
||||||
|
if level == 'QOP':
|
||||||
|
return 'q'
|
||||||
|
elif level == 'SOP':
|
||||||
|
return 'a'
|
||||||
|
elif level == 'AOP':
|
||||||
|
return 'o'
|
||||||
|
elif level == 'HOP':
|
||||||
|
return 'h'
|
||||||
|
elif level == 'VOP':
|
||||||
|
return 'v'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
level = int(level)
|
level = int(level)
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user