1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

Add new option irc.look.smart_filter_nick

This commit is contained in:
Sebastien Helleu
2011-03-07 12:23:32 +01:00
parent f7fd0ae8fc
commit fd0f5f5767
18 changed files with 178 additions and 80 deletions
+10 -1
View File
@@ -809,6 +809,7 @@ IRC_PROTOCOL_CALLBACK(nick)
struct t_irc_nick *ptr_nick, *ptr_nick_found;
char *new_nick, *old_color, *buffer_name;
int local_nick;
struct t_irc_channel_speaking *ptr_nick_speaking;
/*
* NICK message looks like:
@@ -877,8 +878,16 @@ IRC_PROTOCOL_CALLBACK(nick)
if (!irc_ignore_check (server, ptr_channel->name,
nick, host))
{
ptr_nick_speaking = ((weechat_config_boolean (irc_config_look_smart_filter))
&& (weechat_config_boolean (irc_config_look_smart_filter_nick))) ?
irc_channel_nick_speaking_time_search (ptr_channel, nick, 1) : NULL;
weechat_printf_tags (ptr_channel->buffer,
irc_protocol_tags (command, NULL, NULL),
irc_protocol_tags (command,
(!weechat_config_boolean (irc_config_look_smart_filter)
|| !weechat_config_boolean (irc_config_look_smart_filter_nick)
|| ptr_nick_speaking) ?
NULL : "irc_smart_filter",
NULL),
_("%s%s%s%s is now known as "
"%s%s%s"),
weechat_prefix ("network"),