From c47f6e81c493d3eda0f1daf0eda402618badf79d Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 29 Apr 2011 15:41:51 +0200 Subject: [PATCH] irc: fix tags for messages sent with /msg command (bug #33169) --- ChangeLog | 3 ++- src/plugins/irc/irc-command.c | 21 ++++++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8a0ff660..797e7284f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ WeeChat ChangeLog ================= Sébastien Helleu -v0.3.5-rc1, 2011-04-28 +v0.3.5-rc1, 2011-04-29 Version 0.3.5 (under dev!) @@ -63,6 +63,7 @@ Version 0.3.5 (under dev!) (plugins: irc, relay, xfer, scripts) * aspell: add section "option" in aspell.conf for speller options (task #11083) * aspell: fix spellers used after switch of window (bug #32811) +* irc: fix tags for messages sent with /msg command (bug #33169) * irc: add new options irc.color.topic_old and irc.color.topic_new * irc: add option "ssl_priorities" in servers (task #10106, debian #624055) * irc: add modifier "irc_in2_xxx" (called after charset decoding) diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 4d3c0837b..dea754886 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -2513,15 +2513,18 @@ irc_command_msg (void *data, struct t_gui_buffer *buffer, int argc, } else { - weechat_printf (ptr_server->buffer, - "%sMSG%s(%s%s%s)%s: %s", - weechat_prefix ("network"), - IRC_COLOR_CHAT_DELIMITERS, - IRC_COLOR_CHAT_NICK, - targets[i], - IRC_COLOR_CHAT_DELIMITERS, - IRC_COLOR_CHAT, - (string) ? string : argv_eol[arg_text]); + weechat_printf_tags (ptr_server->buffer, + irc_protocol_tags ("privmsg", + "notify_none,no_highlight", + ptr_server->nick), + "%sMSG%s(%s%s%s)%s: %s", + weechat_prefix ("network"), + IRC_COLOR_CHAT_DELIMITERS, + IRC_COLOR_CHAT_NICK, + targets[i], + IRC_COLOR_CHAT_DELIMITERS, + IRC_COLOR_CHAT, + (string) ? string : argv_eol[arg_text]); } if (string) free (string);