mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-01 07:04:06 +01:00
Indentation change.
This commit is contained in:
parent
3884fc451f
commit
c5e48d574f
@ -901,7 +901,7 @@ class IrcObjectProxy(RichReplyMethods):
|
|||||||
else:
|
else:
|
||||||
if self.commandMethod is not None:
|
if self.commandMethod is not None:
|
||||||
# We can recurse here because it only gets called once.
|
# We can recurse here because it only gets called once.
|
||||||
return self.error(formatArgumentError(self.commandMethod),
|
return self.reply(formatArgumentError(self.commandMethod),
|
||||||
**kwargs)
|
**kwargs)
|
||||||
else:
|
else:
|
||||||
raise ArgumentError # We shouldn't get here, but just in case.
|
raise ArgumentError # We shouldn't get here, but just in case.
|
||||||
@ -1108,7 +1108,7 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
"""Gets the given command from this plugin."""
|
"""Gets the given command from this plugin."""
|
||||||
name = canonicalName(name)
|
name = canonicalName(name)
|
||||||
assert self.isCommand(name), '%s is not a command.' % \
|
assert self.isCommand(name), '%s is not a command.' % \
|
||||||
utils.quoted(name)
|
utils.quoted(name)
|
||||||
return getattr(self, name)
|
return getattr(self, name)
|
||||||
|
|
||||||
def callCommand(self, name, irc, msg, *L, **kwargs):
|
def callCommand(self, name, irc, msg, *L, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user