From 049ff3d0cb1dbe24fc0fc2332d22475bd7dec104 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 27 Aug 2004 05:29:44 +0000 Subject: [PATCH] Fixed bug in default. --- src/Config.py | 2 +- test/test_Config.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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: