diff --git a/src/Config.py b/src/Config.py index 12fb68619..52bb0a66d 100644 --- a/src/Config.py +++ b/src/Config.py @@ -199,7 +199,7 @@ class Config(callbacks.Privmsg): name = privmsgs.getArgs(args) name = self._canonicalizeName(name) wrapper = getWrapper(name) - if wrapper.help: + if hasattr(wrapper, 'help'): irc.reply(wrapper.help) else: irc.error('%s has no help.' % name) diff --git a/test/test_Config.py b/test/test_Config.py index f76bbe132..44d475fcb 100644 --- a/test/test_Config.py +++ b/test/test_Config.py @@ -31,8 +31,11 @@ from testsupport import * +import conf + class ConfigTestCase(ChannelPluginTestCase): - plugins = ('Config',) + # We add utilities so there's something in supybot.plugins. + plugins = ('Config', 'Ebay') def testGet(self): self.assertNotRegexp('config get supybot.reply', r'registry\.Group')