irc.error()'s need a msg

This commit is contained in:
James Vega 2003-12-01 04:10:50 +00:00
parent b0fa84408e
commit 42e43531fc

View File

@ -120,7 +120,7 @@ class Python(callbacks.PrivmsgCommandAndRegexp, plugins.Configurable):
return newmodule
name = privmsgs.getArgs(args)
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
if '.' in name:
(moduleName, funcName) = rsplit(name, '.', 1)