mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Major improvement: No theme modification required!
Features:
- When nick_column_enabled=OFF: Normal theme behavior
- When nick_column_enabled=ON: Automatic formatting applied
Changes:
1. Enhanced expandos to handle OFF state:
- expando_nickalign() returns '' when disabled
- expando_nicktrunc() returns original nick when disabled
2. Added automatic format modification in format_get_text_theme_charargs():
- Detects message formats (own_msg, pubmsg, etc.)
- Automatically adds $nickalign prefix
- Replaces {ownnick $0} with {ownnick $nicktrunc}
- Replaces {pubnick $0} with {pubnick $nicktrunc}
- Replaces {menick $0} with {menick $nicktrunc}
3. Restored original theme format:
- own_msg = '{ownmsgnick $2 {ownnick $0}}$1'
- No manual $nickalign/$nicktrunc needed
Result: Clean theme compatibility + automatic nick column when enabled
Timestamp: 2025-01-25 00:20
|
||
|---|---|---|
| .. | ||
| colorless.theme | ||
| default.theme | ||
| meson.build | ||