mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +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]
|
||||
if msg.nick in c.ops or msg.nick in c.halfops or 't' not in c.modes:
|
||||
return True
|
||||
capabilities = self.registryValue('requireManageCapability')
|
||||
capabilities = self.registryValue('requireManageCapability', channel)
|
||||
if capabilities:
|
||||
for capability in re.split(r'\s*;\s*', capabilities):
|
||||
if capability.startswith('channel,'):
|
||||
|
Loading…
Reference in New Issue
Block a user