Revert "In registry.py, test whether a requested configuration variable is a channel name before creating it automatically. Closes GH-63."

This reverts commit c6facc99f3.

Conflicts:

	src/version.py
This commit is contained in:
Valentin Lorentz 2011-08-12 01:06:31 +02:00
parent 0ec1c6a81e
commit 1fa02674a0
2 changed files with 2 additions and 5 deletions

View File

@ -34,7 +34,7 @@ import supybot.conf as conf
class ConfigTestCase(ChannelPluginTestCase):
# We add utilities so there's something in supybot.plugins.
plugins = ('Config', 'Utilities', 'AutoMode')
plugins = ('Config', 'Utilities')
def testGet(self):
self.assertNotRegexp('config get supybot.reply', r'registry\.Group')
self.assertResponse('config supybot.protocols.irc.throttleTime', '0.0')
@ -49,9 +49,6 @@ class ConfigTestCase(ChannelPluginTestCase):
def testHelp(self):
self.assertError('config help alsdkfj')
self.assertError('config help supybot.alsdkfj')
self.assertNotRegexp('config list supybot', '.*alsdkfj.*')
self.assertError('config help supybot.plugins.AutoMode.ban.alsdkfj')
self.assertNotRegexp('config list supybot.plugins.AutoMode.ban', '.*alsdkfj.*')
self.assertNotError('config help supybot') # We tell the user to list.
self.assertNotError('config help supybot.plugins')
self.assertNotError('config help supybot.replies.success')

View File

@ -206,7 +206,7 @@ class Group(object):
def __getattr__(self, attr):
if attr in self._children:
return self._children[attr]
elif self._supplyDefault and attr.startswith('#'):
elif self._supplyDefault:
return self.__makeChild(attr, str(self))
else:
self.__nonExistentEntry(attr)