Topic: actually read 'requireManageCapability' per channel

This commit is contained in:
GLolol 2014-09-19 12:22:12 -07:00 committed by Valentin Lorentz
parent 7f1d990298
commit 0d4f7c655d

View File

@ -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,'):