diff --git a/plugins/ctcp.py b/plugins/ctcp.py index 93d0d7a..3527162 100644 --- a/plugins/ctcp.py +++ b/plugins/ctcp.py @@ -30,8 +30,9 @@ def handle_ctcp(irc, source, command, args): irc.name, ctcp_command, data) if ctcp_command in SUPPORTED_COMMANDS: - log.info('(%s) Received CTCP %s from %s', - irc.name, ctcp_command, irc.get_hostmask(source)) + log.info('(%s) Received CTCP %s from %s to %s', + irc.name, ctcp_command, irc.get_hostmask(source), + irc.get_friendly_name(target)) # Call the helper function and display its result. result = SUPPORTED_COMMANDS[ctcp_command](irc, source, ctcp_command, data) @@ -42,7 +43,8 @@ def handle_ctcp(irc, source, command, args): return False # Block this message from reaching the general command handler else: log.info('(%s) Received unknown CTCP %s from %s', - irc.name, ctcp_command, irc.get_hostmask(source)) + irc.name, ctcp_command, irc.get_hostmask(source), + irc.get_friendly_name(target)) return False utils.add_hook(handle_ctcp, 'PRIVMSG', priority=200)