From 14850dfa9c4a0111dd95df288927bd41fbebbebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 21 May 2014 21:49:20 +0200 Subject: [PATCH] irc: fix duplicate sender name in display of notice (closes #87) --- ChangeLog.asciidoc | 1 + src/plugins/irc/irc-protocol.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc index 022f5209e..24ab246be 100644 --- a/ChangeLog.asciidoc +++ b/ChangeLog.asciidoc @@ -105,6 +105,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] * alias: change default command for alias /beep to "/print -beep" * exec: add exec plugin: new command /exec and file exec.conf * guile: fix module used after unload of a script +* irc: fix duplicate sender name in display of notice (closes #87) * irc: fix refresh of buffer name in bar items after join/part/kick/kill (closes #86) * irc: display message 936 (censored word) on channel instead of server buffer diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 4db3769f6..7cd7c1088 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -1366,7 +1366,7 @@ IRC_PROTOCOL_CALLBACK(notice) } else { - if (address && address[0]) + if (address && address[0] && (strcmp (nick, address) != 0)) { weechat_printf_date_tags (ptr_buffer, date,