irc: add nick, host and log tags in message displayed in private buffer when the nick comes back on the server (closes #1221)

v2.8-utf8proc
Sébastien Helleu 2018-07-11 07:36:11 +02:00
parent 7bd8fb4686
commit 5b3f2ad466
3 changed files with 9 additions and 2 deletions

View File

@ -27,6 +27,7 @@ New features::
* core: allow merge of buffers by name in command /buffer (issue #1108, issue #1159)
* api: add function hashtable_add_from_infolist()
* api: add function string_format_size in scripting API
* irc: add nick, host and log tags in message displayed in private buffer when the nick comes back on the server (issue #1221)
* irc: add support for IRCv3.2 chghost, add options irc.look.smart_filter_chghost and irc.color.message_chghost (issue #640)
* irc: add support for IRCv3.2 invite-notify (issue #639)
* irc: add support for IRCv3.2 Client Capability Negotiation (issue #586, issue #623)

View File

@ -35,6 +35,7 @@
#include "irc-config.h"
#include "irc-modelist.h"
#include "irc-nick.h"
#include "irc-protocol.h"
#include "irc-server.h"
#include "irc-input.h"
@ -1355,7 +1356,11 @@ irc_channel_display_nick_back_in_pv (struct t_irc_server *server,
weechat_printf_date_tags (
ptr_channel->buffer,
0,
"irc_nick_back",
irc_protocol_tags (
"nick_back",
NULL,
(nick) ? nick->name : NULL,
(nick) ? nick->host : NULL),
_("%s%s%s %s(%s%s%s)%s is back on server"),
weechat_prefix ("join"),
irc_nick_color_for_msg (server, 1, nick, nickname),

View File

@ -97,7 +97,8 @@ irc_protocol_log_level_for_command (const char *command)
if ((strcmp (command, "join") == 0)
|| (strcmp (command, "part") == 0)
|| (strcmp (command, "quit") == 0))
|| (strcmp (command, "quit") == 0)
|| (strcmp (command, "nick_back") == 0))
return 4;
return 3;