mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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