1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

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

This commit is contained in:
Sébastien Helleu
2018-07-11 07:36:11 +02:00
parent 7bd8fb4686
commit 5b3f2ad466
3 changed files with 9 additions and 2 deletions
+6 -1
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),
+2 -1
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;