mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 07:34:08 +01:00
Make apropos not case-sensitive.
This commit is contained in:
parent
84e2072903
commit
40f63858b0
@ -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>
|
2004-12-20 Jeremy Fincher <jemfinch@supybot.com>
|
||||||
|
|
||||||
* Version 0.80.0pre5!
|
* Version 0.80.0pre5!
|
||||||
|
@ -213,7 +213,7 @@ class Misc(callbacks.Privmsg):
|
|||||||
irc.reply(utils.commaAndify(L))
|
irc.reply(utils.commaAndify(L))
|
||||||
else:
|
else:
|
||||||
irc.reply('No appropriate commands were found.')
|
irc.reply('No appropriate commands were found.')
|
||||||
apropos = wrap(apropos, ['something'])
|
apropos = wrap(apropos, ['lowered'])
|
||||||
|
|
||||||
def help(self, irc, msg, args, cb, command):
|
def help(self, irc, msg, args, cb, command):
|
||||||
"""[<plugin>] [<command>]
|
"""[<plugin>] [<command>]
|
||||||
|
@ -252,6 +252,9 @@ class MiscTestCase(ChannelPluginTestCase):
|
|||||||
self.assertNotError('apropos f')
|
self.assertNotError('apropos f')
|
||||||
self.assertRegexp('apropos asldkfjasdlkfja', 'No appropriate commands')
|
self.assertRegexp('apropos asldkfjasdlkfja', 'No appropriate commands')
|
||||||
|
|
||||||
|
def testAproposIsNotCaseSensitive(self):
|
||||||
|
self.assertNotRegexp('apropos LIST', 'No appropriate commands')
|
||||||
|
|
||||||
def testAproposDoesntReturnNonCanonicalNames(self):
|
def testAproposDoesntReturnNonCanonicalNames(self):
|
||||||
self.assertNotRegexp('apropos exec', '_exec')
|
self.assertNotRegexp('apropos exec', '_exec')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user