1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

Add tag "nick_xxx" in IRC messages

This commit is contained in:
Sebastien Helleu
2010-10-10 17:39:15 +02:00
parent 4171da77ef
commit 8d6c5e9e4c
20 changed files with 214 additions and 167 deletions
+9 -2
View File
@@ -100,6 +100,7 @@ xfer_chat_recv_cb (void *arg_xfer, int fd)
static char buffer[4096 + 2];
char *buf2, *pos, *ptr_buf, *ptr_buf2, *next_ptr_buf;
char *ptr_buf_decoded, *ptr_buf_without_weechat_colors, *ptr_buf_color;
char str_tags[256];
int num_read, length, ctcp_action;
/* make C compiler happy */
@@ -175,8 +176,11 @@ xfer_chat_recv_cb (void *arg_xfer, int fd)
ptr_buf_without_weechat_colors : ((ptr_buf_decoded) ? ptr_buf_decoded : ptr_buf));
if (ctcp_action)
{
snprintf (str_tags, sizeof (str_tags),
"irc_privmsg,irc_action,notify_message,nick_%s",
xfer->remote_nick);
weechat_printf_tags (xfer->buffer,
"irc_privmsg,irc_action,notify_message",
str_tags,
"%s%s%s%s%s%s",
weechat_prefix ("action"),
(xfer->remote_nick_color) ?
@@ -188,8 +192,11 @@ xfer_chat_recv_cb (void *arg_xfer, int fd)
}
else
{
snprintf (str_tags, sizeof (str_tags),
"irc_privmsg,notify_message,nick_%s",
xfer->remote_nick);
weechat_printf_tags (xfer->buffer,
"irc_privmsg,notify_message",
str_tags,
"%s%s\t%s",
(xfer->remote_nick_color) ?
xfer->remote_nick_color : weechat_color ("chat_nick_other"),