mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Topic: get shouldn't require capabilities, since it's a read-only operation.
This commit is contained in:
parent
e8814fc07a
commit
60bbbc63ab
@ -403,9 +403,6 @@ class Topic(callbacks.Plugin):
|
|||||||
index into the topics. <channel> is only necessary if the message
|
index into the topics. <channel> is only necessary if the message
|
||||||
isn't sent in the channel itself.
|
isn't sent in the channel itself.
|
||||||
"""
|
"""
|
||||||
if not self._checkManageCapabilities(irc, msg, channel):
|
|
||||||
capabilities = self.registryValue('requireManageCapability')
|
|
||||||
irc.errorNoCapability(capabilities, Raise=True)
|
|
||||||
topics = self._splitTopic(irc.state.getTopic(channel), channel)
|
topics = self._splitTopic(irc.state.getTopic(channel), channel)
|
||||||
irc.reply(topics[number])
|
irc.reply(topics[number])
|
||||||
get = wrap(get, ['inChannel', 'topicNumber'])
|
get = wrap(get, ['inChannel', 'topicNumber'])
|
||||||
|
Loading…
Reference in New Issue
Block a user