mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Topic: actually read 'requireManageCapability' per channel
This commit is contained in:
parent
7f1d990298
commit
0d4f7c655d
@ -228,7 +228,7 @@ class Topic(callbacks.Plugin):
|
|||||||
c = irc.state.channels[channel]
|
c = irc.state.channels[channel]
|
||||||
if msg.nick in c.ops or msg.nick in c.halfops or 't' not in c.modes:
|
if msg.nick in c.ops or msg.nick in c.halfops or 't' not in c.modes:
|
||||||
return True
|
return True
|
||||||
capabilities = self.registryValue('requireManageCapability')
|
capabilities = self.registryValue('requireManageCapability', channel)
|
||||||
if capabilities:
|
if capabilities:
|
||||||
for capability in re.split(r'\s*;\s*', capabilities):
|
for capability in re.split(r'\s*;\s*', capabilities):
|
||||||
if capability.startswith('channel,'):
|
if capability.startswith('channel,'):
|
||||||
|
Loading…
Reference in New Issue
Block a user