diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2021-11-15 19:44:16 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2021-11-15 19:44:16 +0100 |
commit | f6a53e66c73e69bff27ce6abdbb4ca01cf5e2516 (patch) | |
tree | 9ba44637dd5eee3c5424c139425447e32cde9d43 /poezio/theming.py | |
parent | 69f28e97f3276c2c817287d97168dcca8ab7e4c0 (diff) | |
download | poezio-f6a53e66c73e69bff27ce6abdbb4ca01cf5e2516.tar.gz poezio-f6a53e66c73e69bff27ce6abdbb4ca01cf5e2516.tar.bz2 poezio-f6a53e66c73e69bff27ce6abdbb4ca01cf5e2516.tar.xz poezio-f6a53e66c73e69bff27ce6abdbb4ca01cf5e2516.zip |
Make message format more configurable around nicks
Normal messages were previously hardcoded to 'nick> ', and /me messages
to '* nick ', this commit adds three new theme variables to make these
configurable.
Diffstat (limited to 'poezio/theming.py')
-rwxr-xr-x | poezio/theming.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poezio/theming.py b/poezio/theming.py index 32763c66..7a13bb6d 100755 --- a/poezio/theming.py +++ b/poezio/theming.py @@ -325,7 +325,9 @@ class Theme: COLOR_COLUMN_HEADER_SEL = (4, 36) # Strings for special messages (like join, quit, nick change, etc) - # Special messages + CHAR_BEFORE_NICK_ME = '* ' + CHAR_AFTER_NICK_ME = ' ' + CHAR_AFTER_NICK = '> ' CHAR_JOIN = '--->' CHAR_QUIT = '<---' CHAR_KICK = '-!-' |