Skip to content

Commit

Permalink
coretasks: fix %r usage for channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Exirel committed Apr 10, 2021
1 parent cab102d commit 107f516
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sopel/coretasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,15 @@ def retry_join(bot, trigger):
return
LOGGER.info(
"Rejoining channel %r failed, will retry in 6s.",
channel)
str(channel))
time.sleep(6)
else:
bot.memory['retry_join'][channel] = 0

attempt = bot.memory['retry_join'][channel] + 1
LOGGER.info(
"Trying to rejoin channel %r (attempt %d/10)",
channel, attempt)
str(channel), attempt)
bot.join(channel)


Expand Down Expand Up @@ -600,7 +600,7 @@ def _parse_modes(bot, args):
return

LOGGER.info("Updated mode for channel: %s", channel.name)
LOGGER.debug("Channel %r mode: %r", channel.name, channel.modes)
LOGGER.debug("Channel %r mode: %r", str(channel.name), channel.modes)


@module.event('NICK')
Expand Down Expand Up @@ -769,7 +769,9 @@ def track_join(bot, trigger):
bot.write(["MODE", channel])
_send_who(bot, channel)
else:
LOGGER.info("Channel %r joined by user: %s", channel, trigger.nick)
LOGGER.info(
"Channel %r joined by user: %s",
str(channel), trigger.nick)

# set initial values
bot.privileges[channel][trigger.nick] = 0
Expand Down

0 comments on commit 107f516

Please sign in to comment.