plugins: Fix name mismatch of typeSubstitution in getCommandHelp.

Bug introduced in 4046a1b201.
This commit is contained in:
Valentin Lorentz 2020-05-27 21:19:06 +02:00
parent 8b9ac3540d
commit 847e51a7ec
1 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ class ChannelIdDatabasePlugin(callbacks.Plugin):
self.db.close()
self.__parent.die()
def typeSubstitutions(self):
def _typeSubstitutions(self):
"""Returns a dict with keys Types/Type/types/type, whose values are
the plugin name with matching capitalization and plural."""
return {
@ -457,7 +457,7 @@ class ChannelIdDatabasePlugin(callbacks.Plugin):
username=username,
nick=nick,
at=utils.str.timestamp(record.at),
**self.typeSubstitutions()
**self._typeSubstitutions()
)
def get(self, irc, msg, args, channel, id):