mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 18:23:13 +02:00
irc: add option irc.look.display_pv_warning_address (closes #892)
If the address of remote nick changes in a private buffer, a warning is displayed.
This commit is contained in:
@@ -1244,7 +1244,11 @@ IRC_PROTOCOL_CALLBACK(join)
|
||||
|
||||
/* display message in private if private has flag "has_quit_server" */
|
||||
if (!local_join)
|
||||
{
|
||||
irc_channel_display_nick_back_in_pv (server, ptr_nick, nick);
|
||||
irc_channel_set_topic_private_buffers (server, ptr_nick, nick,
|
||||
address);
|
||||
}
|
||||
}
|
||||
|
||||
if (local_join)
|
||||
@@ -1717,7 +1721,11 @@ IRC_PROTOCOL_CALLBACK(nick)
|
||||
}
|
||||
|
||||
if (!local_nick)
|
||||
{
|
||||
irc_channel_display_nick_back_in_pv (server, ptr_nick_found, new_nick);
|
||||
irc_channel_set_topic_private_buffers (server, ptr_nick_found,
|
||||
new_nick, address);
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user