diff --git a/src/Config.py b/src/Config.py index d763e0f1c..be162108e 100644 --- a/src/Config.py +++ b/src/Config.py @@ -257,7 +257,7 @@ class Config(callbacks.Privmsg): name = privmsgs.getArgs(args) name = self._canonicalizeName(name) wrapper = getWrapper(name) - v = wrapper.__class__(wrapper.default, '') + v = wrapper.__class__(wrapper._default, '') irc.reply(str(v)) def reload(self, irc, msg, args): diff --git a/test/test_Config.py b/test/test_Config.py index 56b2bab56..5a44153d5 100644 --- a/test/test_Config.py +++ b/test/test_Config.py @@ -65,6 +65,10 @@ class ConfigTestCase(ChannelPluginTestCase): self.assertNotError('config channel reply.whenAddressedBy.chars @') self.assertNotRegexp('config search chars', self.channel) + def testDefault(self): + self.assertNotError('config default ' + 'supybot.replies.genericNoCapability') + # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: