summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-01-09 10:12:20 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-01-09 10:12:20 +0100
commitfa240e8d1118f774ed885dafc2d4059c3f934dda (patch)
tree1f406ba43529b64451dd1e377077aed9b94a3119
parentf7b473790bededac5c5d0bf4326caecb47d2f343 (diff)
downloadweechat-fa240e8d1118f774ed885dafc2d4059c3f934dda.zip
Differenciate IRC notices from messages in private buffer (bug #31980)
-rw-r--r--ChangeLog3
-rw-r--r--src/plugins/irc/irc-protocol.c10
2 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 90db397fe..45bbad150 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
-v0.3.4-rc3, 2011-01-05
+v0.3.4-rc3, 2011-01-09
Version 0.3.4 (under dev!)
@@ -51,6 +51,7 @@ Version 0.3.4 (under dev!)
nicklist_nick_get_integer, nicklist_nick_get_string, nicklist_nick_get_pointer,
nicklist_nick_set
* alias: complete with alias value for second argument of command /alias
+* irc: differenciate notices from messages in private buffer (bug #31980)
* irc: update nick modes with message 221 (bug #32038)
* irc: add option "-server" to command /join (task #10837)
* irc: fix bug with charset decoding on private buffers (decoding was made for
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 1ba9411d5..585c53e9c 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -1001,14 +1001,16 @@ IRC_PROTOCOL_CALLBACK(notice)
{
if (!ptr_channel->topic)
irc_channel_set_topic (ptr_channel, address);
-
+
weechat_printf_tags (ptr_channel->buffer,
irc_protocol_tags (command,
"notify_private",
nick),
- "%s%s",
- irc_nick_as_prefix (server, NULL, nick,
- irc_nick_color_for_pv (ptr_channel, nick)),
+ "%s%s%s%s: %s",
+ weechat_prefix ("network"),
+ IRC_COLOR_CHAT_NICK,
+ nick,
+ IRC_COLOR_CHAT,
pos_args);
if ((ptr_channel->type == IRC_CHANNEL_TYPE_PRIVATE)
&& ptr_channel->has_quit_server)