mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Made error message better for dispatcher commands.
This commit is contained in:
parent
6cf0005abe
commit
d60b3daecb
@ -592,10 +592,13 @@ class Privmsg(irclib.IrcCallback):
|
||||
if self._original:
|
||||
self._original(irc, msg, args)
|
||||
else:
|
||||
raise ArgumentError
|
||||
cb = irc.getCallback('Misc')
|
||||
cb.help(irc, msg, [self.name()])
|
||||
if args:
|
||||
name = canonicalName(args[0])
|
||||
if self.isCommand(name):
|
||||
if name == canonicalName(self.name()):
|
||||
handleBadArgs()
|
||||
elif self.isCommand(name):
|
||||
del args[0]
|
||||
method = getattr(self, name)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user