mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-08 12:15:25 -05:00
Topic: get shouldn't require capabilities, since it's a read-only operation.
This commit is contained in:
parent
3151d08e73
commit
831a2c3b9a
1 changed files with 0 additions and 3 deletions
|
@ -390,9 +390,6 @@ class Topic(callbacks.Plugin):
|
|||
index into the topics. <channel> is only necessary if the message
|
||||
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)
|
||||
irc.reply(topics[number])
|
||||
get = wrap(get, ['inChannel', 'topicNumber'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue