Extra backup for something I can't remember what now.

This commit is contained in:
Jeremy Fincher 2005-01-04 03:45:24 +00:00
parent cedcad32e2
commit 1f90a8ae54

View File

@ -1056,9 +1056,11 @@ class Privmsg(irclib.IrcCallback):
if self._original: if self._original:
self._original(irc, msg, args) self._original(irc, msg, args)
else: else:
cb = irc.getCallback('Misc') if args:
if cb is not None: irc.error('%s is not a valid command in this plugin.' %
cb.help(irc, msg, [self.name()]) args[0])
else:
irc.error()
if args: if args:
name = canonicalName(args[0]) name = canonicalName(args[0])
if name == canonicalName(self.name()): if name == canonicalName(self.name()):