mirror of
https://github.com/jlu5/PyLink.git
synced 2025-04-26 01:37:53 +02:00
ircs2s_common: handle 'netadmin' umodes as an oper type
Also, make the Network Service opertype take precedence over the others.
This commit is contained in:
parent
d707c243f4
commit
63f52ca8b0
@ -579,10 +579,12 @@ class IRCS2SProtocol(IRCCommonProtocol):
|
|||||||
def _check_oper_status_change(self, uid, modes):
|
def _check_oper_status_change(self, uid, modes):
|
||||||
if uid in self.users:
|
if uid in self.users:
|
||||||
u = self.users[uid]
|
u = self.users[uid]
|
||||||
if 'admin' in self.umodes and (self.umodes['admin'], None) in u.modes:
|
if 'servprotect' in self.umodes and (self.umodes['servprotect'], None) in u.modes:
|
||||||
opertype = 'Server Administrator'
|
|
||||||
elif 'servprotect' in self.umodes and (self.umodes['servprotect'], None) in u.modes:
|
|
||||||
opertype = 'Network Service'
|
opertype = 'Network Service'
|
||||||
|
elif 'netadmin' in self.umodes and (self.umodes['netadmin'], None) in u.modes:
|
||||||
|
opertype = 'Network Administrator'
|
||||||
|
elif 'admin' in self.umodes and (self.umodes['admin'], None) in u.modes:
|
||||||
|
opertype = 'Server Administrator'
|
||||||
else:
|
else:
|
||||||
opertype = 'IRC Operator'
|
opertype = 'IRC Operator'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user