mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Let people specify the entire conf.supybot.foo... when using @config
This commit is contained in:
parent
8cc4a98d9e
commit
dfd51532f4
@ -106,6 +106,8 @@ class Config(callbacks.Privmsg):
|
|||||||
irc.error(str(e))
|
irc.error(str(e))
|
||||||
|
|
||||||
def _canonicalizeName(self, name):
|
def _canonicalizeName(self, name):
|
||||||
|
if name.startswith('conf.'):
|
||||||
|
name = name[5:]
|
||||||
if not name.startswith('supybot') and not name.startswith('users'):
|
if not name.startswith('supybot') and not name.startswith('users'):
|
||||||
name = 'supybot.' + name
|
name = 'supybot.' + name
|
||||||
return name
|
return name
|
||||||
|
Loading…
Reference in New Issue
Block a user