mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Fix for bug #852433.
This commit is contained in:
parent
b473532b4c
commit
4e5e568244
@ -200,7 +200,10 @@ class Misc(callbacks.Privmsg):
|
||||
name = privmsgs.getArgs(args, required=0, optional=1)
|
||||
if name:
|
||||
try:
|
||||
module = sys.modules[name]
|
||||
modules = {}
|
||||
for moduleName in sys.modules:
|
||||
modules[moduleName.lower()] = moduleName
|
||||
module = sys.modules[modules[name.lower()]]
|
||||
except KeyError:
|
||||
irc.error(msg, 'I couldn\'t find a module named %s' % name)
|
||||
return
|
||||
|
@ -156,6 +156,7 @@ class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
|
||||
def testRevision(self):
|
||||
self.assertNotError('revision Misc')
|
||||
self.assertNotError('revision misc')
|
||||
self.assertNotError('revision')
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user