mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-04 18:29:21 +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):
|
def registryValue(self, name, channel=None):
|
||||||
plugin = self.name()
|
plugin = self.name()
|
||||||
|
group = conf.supybot.plugins.get(plugin)
|
||||||
|
names = name.split('.')
|
||||||
|
for name in names:
|
||||||
|
group = group.get(name)
|
||||||
if channel is None:
|
if channel is None:
|
||||||
return conf.supybot.plugins.get(plugin).get(name)()
|
return group()
|
||||||
else:
|
else:
|
||||||
return conf.supybot.plugins.get(plugin).get(name).get(channel)()
|
return group.get(channel)()
|
||||||
|
|
||||||
|
|
||||||
class IrcObjectProxyRegexp(RichReplyMethods):
|
class IrcObjectProxyRegexp(RichReplyMethods):
|
||||||
|
Loading…
Reference in New Issue
Block a user