fix: sanitize profile updates before storing in chat memory pipeline
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -171,6 +171,8 @@ class ChatCog(commands.Cog):
|
||||
# Update profile if warranted
|
||||
profile_update = result.get("profile_update")
|
||||
if profile_update:
|
||||
# Sanitize before storing — strips any quoted toxic language
|
||||
profile_update = await self.bot.llm.sanitize_notes(profile_update)
|
||||
self.bot.drama_tracker.set_user_profile(user_id, profile_update)
|
||||
self._dirty_users.add(user_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user