mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Made registryValue work with dotted syntax.
This commit is contained in:
parent
b2b9f64558
commit
bd47403bf0
@ -745,10 +745,14 @@ class Privmsg(irclib.IrcCallback):
|
||||
|
||||
def registryValue(self, name, channel=None):
|
||||
plugin = self.name()
|
||||
group = conf.supybot.plugins.get(plugin)
|
||||
names = name.split('.')
|
||||
for name in names:
|
||||
group = group.get(name)
|
||||
if channel is None:
|
||||
return conf.supybot.plugins.get(plugin).get(name)()
|
||||
return group()
|
||||
else:
|
||||
return conf.supybot.plugins.get(plugin).get(name).get(channel)()
|
||||
return group.get(channel)()
|
||||
|
||||
|
||||
class IrcObjectProxyRegexp(RichReplyMethods):
|
||||
|
Loading…
Reference in New Issue
Block a user