Make apropos not case-sensitive.

This commit is contained in:
Jeremy Fincher 2004-12-20 18:51:05 +00:00
parent 84e2072903
commit 40f63858b0
3 changed files with 9 additions and 1 deletions

View File

@ -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 <jemfinch@supybot.com>
* Version 0.80.0pre5!

View File

@ -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):
"""[<plugin>] [<command>]

View File

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