mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
irc.error()'s need a msg
This commit is contained in:
parent
b0fa84408e
commit
42e43531fc
@ -120,7 +120,7 @@ class Python(callbacks.PrivmsgCommandAndRegexp, plugins.Configurable):
|
|||||||
return newmodule
|
return newmodule
|
||||||
name = privmsgs.getArgs(args)
|
name = privmsgs.getArgs(args)
|
||||||
if name.translate(string.ascii, self.modulechars) != '':
|
if name.translate(string.ascii, self.modulechars) != '':
|
||||||
irc.error('That\'s not a valid module or function name.')
|
irc.error(msg, 'That\'s not a valid module or function name.')
|
||||||
return
|
return
|
||||||
if '.' in name:
|
if '.' in name:
|
||||||
(moduleName, funcName) = rsplit(name, '.', 1)
|
(moduleName, funcName) = rsplit(name, '.', 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user