mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-10-14 17:59:29 +02:00
Add the channel where a command has been called in the logs ('XXX called by XXX').
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
6f1b60c0f3
commit
741599c947
@ -1166,7 +1166,12 @@ class Commands(BasePlugin):
|
|||||||
method(irc, msg, *args, **kwargs)
|
method(irc, msg, *args, **kwargs)
|
||||||
|
|
||||||
def _callCommand(self, command, irc, msg, *args, **kwargs):
|
def _callCommand(self, command, irc, msg, *args, **kwargs):
|
||||||
self.log.info('%s called by %q.', formatCommand(command), msg.prefix)
|
if irc.nick == msg.args[0]:
|
||||||
|
self.log.info('%s called in private by %q.', formatCommand(command),
|
||||||
|
msg.prefix)
|
||||||
|
else:
|
||||||
|
self.log.info('%s called on %s by %q.', formatCommand(command),
|
||||||
|
msg.args[0], msg.prefix)
|
||||||
# XXX I'm being extra-special-careful here, but we need to refactor
|
# XXX I'm being extra-special-careful here, but we need to refactor
|
||||||
# this.
|
# this.
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user