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

irc: add option irc.look.notice_nicks_disable_notify

This commit is contained in:
Sébastien Helleu
2024-09-02 19:55:27 +02:00
parent fce44675c4
commit 3253500d15
19 changed files with 222 additions and 69 deletions
+3 -5
View File
@@ -2644,16 +2644,14 @@ IRC_PROTOCOL_CALLBACK(notice)
notify_private = 0;
if (ctxt->server->is_connected
&& ctxt->nick
&& (weechat_strcasecmp (ctxt->nick, "nickserv") != 0)
&& (weechat_strcasecmp (ctxt->nick, "chanserv") != 0)
&& (weechat_strcasecmp (ctxt->nick, "memoserv") != 0))
&& irc_config_notice_nick_notify (ctxt->nick))
{
/*
* add tag "notify_private" only if:
* - server is connected (message 001 already received)
* and:
* - notice is from a non-empty nick different from
* nickserv/chanserv/memoserv
* - notice is from a non-empty nick not present in option
* irc.look.notice_nicks_disable_notify
*/
notify_private = 1;
}