diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-05-30 19:29:21 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2023-05-30 19:52:50 +0200 |
commit | 4c569bed30416646866ca57bb385a00352a26cdf (patch) | |
tree | 41dd3b1c314d873db538eb947cc8ac6811f0946b | |
parent | 39ff696e6ad2c3c6381b2556786394adb06bf935 (diff) | |
download | wee-slack-4c569bed30416646866ca57bb385a00352a26cdf.tar.gz |
Include a space between nicks in reaction string
Without spaces, WeeChat will consider all the nicks as one word, which
means that rather than wrapping between nicks, it will fill the whole
line and wrap in the middle of nicks. Additionally, if you have disabled
weechat.look.align_multiline_words it will start from the beginning of
the line when wrapping, rather than after the prefix, which doesn't look
nice.
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 349bc3f..c2e3aa0 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -4907,7 +4907,7 @@ def create_user_status_string(profile): def create_reaction_string(reaction, myidentifier): if config.show_reaction_nicks: nicks = [resolve_ref("@{}".format(user)) for user in reaction["users"]] - users = "({})".format(",".join(nicks)) + users = "({})".format(", ".join(nicks)) else: users = len(reaction["users"]) reaction_string = ":{}:{}".format(reaction["name"], users) |