mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Add the channel where a command has been called in the logs ('XXX called by XXX').
This commit is contained in:
parent
11417cea83
commit
590a992651
@ -1197,7 +1197,12 @@ class Commands(BasePlugin):
|
||||
method(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
|
||||
# this.
|
||||
try:
|
||||
|
@ -1,3 +1,3 @@
|
||||
"""stick the various versioning attributes in here, so we only have to change
|
||||
them once."""
|
||||
version = '0.83.4.1+limnoria (2012-03-16T17:35:14+0000)'
|
||||
version = '0.83.4.1+limnoria (2012-03-18T19:45:17+0000)'
|
||||
|
Loading…
Reference in New Issue
Block a user