Allow IL moves to post to transaction log during freeze period

IL moves (/ilmove) are intra-team transactions that should always be
visible immediately. Only scheduled transactions (/dropadd) need to
remain hidden during the freeze period.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2025-12-16 22:19:53 -06:00
parent 7a5e85323b
commit 8ab5e025b2
2 changed files with 5 additions and 9 deletions

View File

@ -1 +1 @@
2.24.8
2.24.9

View File

@ -291,11 +291,10 @@ class SubmitConfirmationModal(discord.ui.Modal):
)
player_updates.append(updated_player)
# Post to #transaction-log channel (only when league is NOT frozen)
# During freeze period, IL moves are hidden until Saturday processing
if not current_state.freeze:
bot = interaction.client
await post_transaction_to_log(bot, created_transactions, team=self.builder.team)
# Post to #transaction-log channel
# IL moves always post immediately - they're intra-team and don't need freeze hiding
bot = interaction.client
await post_transaction_to_log(bot, created_transactions, team=self.builder.team)
# Create success message
success_msg = f"✅ **IL Move Executed Successfully!**\n\n"
@ -309,9 +308,6 @@ class SubmitConfirmationModal(discord.ui.Modal):
success_msg += f"\n✅ **All players have been moved to their new teams immediately**"
if current_state.freeze:
success_msg += f"\n🔒 Move logged but hidden during freeze period - will be revealed Saturday"
await interaction.followup.send(success_msg, ephemeral=True)
# Clear the builder after successful submission