From d60b3daecb1c93db8dbb009ebd51ab3802655ffc Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 22 Oct 2003 17:19:08 +0000 Subject: [PATCH] Made error message better for dispatcher commands. --- src/callbacks.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 897ee072d..23d8ef832 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -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: