registryValue was missing a little self loving

This commit is contained in:
James Vega 2004-01-21 01:16:37 +00:00
parent 0cd95c63d5
commit c3173fe4b4

View File

@ -743,7 +743,7 @@ class Privmsg(irclib.IrcCallback):
elapsed = time.time() - start elapsed = time.time() - start
self.log.info('%s took %s seconds', name, elapsed) self.log.info('%s took %s seconds', name, elapsed)
def registryValue(name, channel=None): def registryValue(self, name, channel=None):
plugin = self.name() plugin = self.name()
if channel is None: if channel is None:
return conf.supybot.plugins.get(plugin).get(name)() return conf.supybot.plugins.get(plugin).get(name)()