Fixed bug in default.

This commit is contained in:
Jeremy Fincher 2004-08-27 05:29:44 +00:00
parent 9708ddbfa5
commit 049ff3d0cb
2 changed files with 5 additions and 1 deletions

View File

@ -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):

View File

@ -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: