~tardypad/wee-most

50894fccf687f66bd56e02aed6825dcef03db497 — Damien Tardy-Panis a month ago 6545320
Add system_join/leave_team post type to use weechat.look.prefix_join/quit configs

For "Town Square" the type is "system_join_team"
but for "Off-Topic" and other channels it's "system_join_channel"
1 files changed, 2 insertions(+), 2 deletions(-)

M wee_most/post.py
M wee_most/post.py => wee_most/post.py +2 -2
@@ 306,10 306,10 @@ def write_message_lines(buffer, post):
        tags += ",attachments"
        message = build_message_with_attachments(message, post.attachments)

    if post.type == "system_join_channel":
    if post.type in [ "system_join_channel", "system_join_team" ]:
        prefix = weechat.config_string(weechat.config_get("weechat.look.prefix_join"))
        message = "{}{}".format(prefix, message)
    elif post.type == "system_leave_channel":
    elif post.type in [ "system_leave_channel", "system_leave_team" ]:
        prefix = weechat.config_string(weechat.config_get("weechat.look.prefix_quit"))
        message = "{}{}".format(prefix, message)