summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-05-06 15:07:24 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-05-06 15:07:24 +0200
commit8b17cbb16c9d7540b6d89d96bc642a5baec88c0e (patch)
treead0fab0cd3c2238150810e604812efaab65fd0cc /src/plugins/irc
parentc6b7a244d6b0fc1255b81832a59d6e4d84d5ba24 (diff)
downloadweechat-8b17cbb16c9d7540b6d89d96bc642a5baec88c0e.zip
irc: fix display of CTCP messages that contain bold attribute (bug #38895)
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-ctcp.c2
-rw-r--r--src/plugins/irc/irc-input.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-ctcp.c b/src/plugins/irc/irc-ctcp.c
index b21a4328e..07eddf7cd 100644
--- a/src/plugins/irc/irc-ctcp.c
+++ b/src/plugins/irc/irc-ctcp.c
@@ -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';
diff --git a/src/plugins/irc/irc-input.c b/src/plugins/irc/irc-input.c
index ddd13cc00..881819caf 100644
--- a/src/plugins/irc/irc-input.c
+++ b/src/plugins/irc/irc-input.c
@@ -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