mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 07:46:38 +02:00
irc: fix display of CTCP messages that contain bold attribute (bug #38895)
This commit is contained in:
@@ -155,7 +155,7 @@ irc_ctcp_display_reply_from_nick (struct t_irc_server *server, time_t date,
|
||||
|
||||
while (arguments && arguments[0])
|
||||
{
|
||||
pos_end = strchr (arguments + 1, '\01');
|
||||
pos_end = strrchr (arguments + 1, '\01');
|
||||
if (pos_end)
|
||||
pos_end[0] = '\0';
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ irc_input_user_message_display (struct t_gui_buffer *buffer, int action,
|
||||
if (strncmp (text, "\01ACTION ", 8) == 0)
|
||||
{
|
||||
action = 1;
|
||||
pos = strchr (text + 8, '\01');
|
||||
pos = strrchr (text + 8, '\01');
|
||||
if (pos)
|
||||
text2 = weechat_strndup (text + 8, pos - text - 8);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user