mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
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:
parent
0ec1c6a81e
commit
1fa02674a0
@ -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')
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user