diff --git a/ChangeLog b/ChangeLog index e1776f723..0cab2dec9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ + * Fixed Misc.apropos not to be case-sensitive. + + * Fixed bug in User.register; it works now. + + 2004-12-20 Jeremy Fincher * Version 0.80.0pre5! diff --git a/src/Misc.py b/src/Misc.py index 15b5d804c..bb6a45812 100755 --- a/src/Misc.py +++ b/src/Misc.py @@ -213,7 +213,7 @@ class Misc(callbacks.Privmsg): irc.reply(utils.commaAndify(L)) else: irc.reply('No appropriate commands were found.') - apropos = wrap(apropos, ['something']) + apropos = wrap(apropos, ['lowered']) def help(self, irc, msg, args, cb, command): """[] [] diff --git a/test/test_Misc.py b/test/test_Misc.py index 104ce6939..a848171c0 100644 --- a/test/test_Misc.py +++ b/test/test_Misc.py @@ -252,6 +252,9 @@ class MiscTestCase(ChannelPluginTestCase): self.assertNotError('apropos f') self.assertRegexp('apropos asldkfjasdlkfja', 'No appropriate commands') + def testAproposIsNotCaseSensitive(self): + self.assertNotRegexp('apropos LIST', 'No appropriate commands') + def testAproposDoesntReturnNonCanonicalNames(self): self.assertNotRegexp('apropos exec', '_exec')