added refresh command to Topic plugin

This commit is contained in:
Julian Paul Glass 2014-11-21 03:24:10 +00:00
parent d35e67046b
commit 54ee1e7670

View File

@ -531,13 +531,13 @@ class Topic(callbacks.Plugin):
"""
if not self._checkManageCapabilities(irc, msg, channel):
capabilities = self.registryValue('requireManageCapability')
irc.errorNoCapability(capabilities, raise=True)
irc.errorNoCapability(capabilities, Raise=True)
topic = irc.state.channels[channel].topic
if topic:
self._sendTopics(irc, channel, topic)
else:
self.restore(self, irc, msg, args, channel)
set = wrap(refresh, ['canChangeTopic'])
self.restore(irc, msg, args, channel)
set = wrap(refresh, ['canChangetopic'])
@internationalizeDocstring
def undo(self, irc, msg, args, channel):