mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 11:13:12 +02:00
irc: remove tag "notify_private" from notices received before message 001
This removes tag "notify_private" from notices like that (sent before message 001): :irc.network.com NOTICE nick :*** Spoofing your IP :irc.network.com NOTICE nick :*** You are exempt from K/G/X lines :irc.network.com NOTICE nick :*** You are exempt from user limits
This commit is contained in:
@@ -1135,11 +1135,19 @@ IRC_PROTOCOL_CALLBACK(notice)
|
||||
{
|
||||
/* notice for user */
|
||||
notify_private = 0;
|
||||
if (nick
|
||||
if (server->is_connected
|
||||
&& nick
|
||||
&& (weechat_strcasecmp (nick, "nickserv") != 0)
|
||||
&& (weechat_strcasecmp (nick, "chanserv") != 0)
|
||||
&& (weechat_strcasecmp (nick, "memoserv") != 0))
|
||||
{
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
notify_private = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user