Decode message formatting in attachment messages

v1
Tony Olagbaiye 7 years ago
parent 06d8d19e14
commit dc0c43c80c
No known key found for this signature in database
GPG Key ID: 7420820577A31D11

@ -55,6 +55,7 @@ slack-emoji.inc: slack-emoji.pl
perl slack-emoji.pl > slack-emoji.inc perl slack-emoji.pl > slack-emoji.inc
else else
slack-emoji.inc: slack-emoji.py slack-emoji.inc: slack-emoji.py
pip install requests
env python3 slack-emoji.py > slack-emoji.inc env python3 slack-emoji.py > slack-emoji.inc
endif endif

@ -138,13 +138,15 @@ int slack_api_message_attachment_handle(struct t_slack_workspace *workspace,
if (!ptr_user) if (!ptr_user)
return 1; /* silently ignore if user hasn't been loaded yet */ return 1; /* silently ignore if user hasn't been loaded yet */
char *message = slack_message_decode(workspace, text);
weechat_printf_date_tags( weechat_printf_date_tags(
ptr_channel->buffer, ptr_channel->buffer,
(time_t)atof(ts), (time_t)atof(ts),
"slack_message", "slack_message",
_("%s%s"), _("%s%s"),
"++\t", "++\t",
text); message);
free(message);
return 1; return 1;
} }

Loading…
Cancel
Save