Skip to content

Commit

Permalink
bot: clarify log message when blocked user attempts a func
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpowa committed Jun 21, 2016
1 parent 4018ce9 commit 8dde3e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sopel/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,15 +530,16 @@ def dispatch(self, pretrigger):

if list_of_blocked_functions:
if nick_blocked and host_blocked:
block_type = 'both'
block_type = 'nick and host'
elif nick_blocked:
block_type = 'nick'
else:
block_type = 'host'
LOGGER.info(
"[%s]%s prevented from using %s.",
block_type,
"%s prevented from using %d functions due to %s blocks (Blocked functions: %s)",
trigger.nick,
len(list_of_blocked_functions),
block_type,
', '.join(list_of_blocked_functions)
)

Expand Down

0 comments on commit 8dde3e7

Please sign in to comment.