Let people specify the entire conf.supybot.foo... when using @config

This commit is contained in:
James Vega 2004-09-03 13:52:10 +00:00
parent 8cc4a98d9e
commit dfd51532f4

View File

@ -106,6 +106,8 @@ class Config(callbacks.Privmsg):
irc.error(str(e))
def _canonicalizeName(self, name):
if name.startswith('conf.'):
name = name[5:]
if not name.startswith('supybot') and not name.startswith('users'):
name = 'supybot.' + name
return name