Skip to content

Commit

Permalink
Fix some oversights from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yiays committed Oct 20, 2024
1 parent a77e4a5 commit 97be0ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/confessions_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ async def send_confession(
channel = self.targetchannel
# Update channeltype, in case this channel is different
guildchannels = get_guildchannels(self.config, channel.guild.id)
self.channeltype = guildchannels.get(channel, ChannelType.unset)
self.channeltype = guildchannels.get(channel.id, ChannelType.unset)
if perform_checks:
if not await self.check_all(inter):
return False
Expand Down Expand Up @@ -736,7 +736,7 @@ async def send_confession(
show_anonid = self.anonid and self.channeltype.anonid
username = (
(preface + ' - ' if preface else '') +
('[Anon]' if show_anonid else '[Anon-' + self.anonid + ']')
(f'[Anon-{self.anonid}]' if show_anonid else '[Anon]')
)
pfp = (
self.config.get('pfpgen_url', '')
Expand Down

0 comments on commit 97be0ff

Please sign in to comment.