testing stuff ; testing branch lol

This commit is contained in:
seppmutterman@gmail.com
2025-12-14 18:35:51 +01:00
parent faeac6c96f
commit 69b10b0864
4 changed files with 144 additions and 8 deletions

View File

@@ -561,9 +561,13 @@ class IRCPanel(wx.Panel):
logger.error(f"Error in add_message: {e}")
def _add_message_safe(self, message, username_color=None, message_color=None,
bold=False, italic=False, underline=False):
bold=False, italic=False, underline=False):
"""Add message to display with formatting (must be called from main thread)."""
try:
# Safety check: ensure text_ctrl still exists
if not self.text_ctrl or not self:
return
self.messages.append(message)
# Check if user is at bottom