mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-13 22:29:23 +01:00
Fixed bug in default.
This commit is contained in:
parent
9708ddbfa5
commit
049ff3d0cb
@ -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):
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user