mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
added refresh command to Topic plugin
This commit is contained in:
parent
d35e67046b
commit
54ee1e7670
@ -531,13 +531,13 @@ class Topic(callbacks.Plugin):
|
|||||||
"""
|
"""
|
||||||
if not self._checkManageCapabilities(irc, msg, channel):
|
if not self._checkManageCapabilities(irc, msg, channel):
|
||||||
capabilities = self.registryValue('requireManageCapability')
|
capabilities = self.registryValue('requireManageCapability')
|
||||||
irc.errorNoCapability(capabilities, raise=True)
|
irc.errorNoCapability(capabilities, Raise=True)
|
||||||
topic = irc.state.channels[channel].topic
|
topic = irc.state.channels[channel].topic
|
||||||
if topic:
|
if topic:
|
||||||
self._sendTopics(irc, channel, topic)
|
self._sendTopics(irc, channel, topic)
|
||||||
else:
|
else:
|
||||||
self.restore(self, irc, msg, args, channel)
|
self.restore(irc, msg, args, channel)
|
||||||
set = wrap(refresh, ['canChangeTopic'])
|
set = wrap(refresh, ['canChangetopic'])
|
||||||
|
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
def undo(self, irc, msg, args, channel):
|
def undo(self, irc, msg, args, channel):
|
||||||
|
Loading…
Reference in New Issue
Block a user