plugins: Fix AttributeError in getCommandHelp.

Introduced in commit 4046a1b201.
This commit is contained in:
Valentin Lorentz 2020-05-27 20:30:39 +02:00
parent f9bf75aeee
commit 8b9ac3540d

View File

@ -336,7 +336,8 @@ class ChannelIdDatabasePlugin(callbacks.Plugin):
} }
def getCommandHelp(self, name, simpleSyntax=None): def getCommandHelp(self, name, simpleSyntax=None):
helpTemplate = self.__parent.getCommandHelp(name, simpleSyntax) helpTemplate = string.Template(self.__parent.getCommandHelp(
name, simpleSyntax))
return helpTemplate.substitute(self._typeSubstitutions()) return helpTemplate.substitute(self._typeSubstitutions())
def noSuchRecord(self, irc, channel, id): def noSuchRecord(self, irc, channel, id):