1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

irc: fix self-highlight when using /me with an IRC bouncer like znc (bug #35123)

This commit is contained in:
Sebastien Helleu
2012-02-04 08:56:19 +01:00
parent e6736b544e
commit 14b2a2223e
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -917,10 +917,10 @@ irc_ctcp_recv (struct t_irc_server *server, const char *command,
/* CTCP ACTION */
if (strcmp (arguments + 1, "ACTION") == 0)
{
nick_is_me = (irc_server_strcasecmp (server, server->nick, nick) == 0);
if (channel)
{
ptr_nick = irc_nick_search (server, channel, nick);
irc_channel_nick_speaking_add (channel,
nick,
(pos_args) ?
@@ -929,9 +929,10 @@ irc_ctcp_recv (struct t_irc_server *server, const char *command,
irc_channel_nick_speaking_time_remove_old (channel);
irc_channel_nick_speaking_time_add (server, channel, nick,
time (NULL));
weechat_printf_tags (channel->buffer,
irc_protocol_tags (command,
(nick_is_me) ?
"irc_action,notify_none,no_highlight" :
"irc_action,notify_message",
nick),
"%s%s%s%s%s%s",
@@ -944,7 +945,6 @@ irc_ctcp_recv (struct t_irc_server *server, const char *command,
}
else
{
nick_is_me = (irc_server_strcasecmp (server, server->nick, nick) == 0);
ptr_channel = irc_channel_search (server, remote_nick);
if (!ptr_channel)
{