1
0
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:
Sebastien Helleu
2013-05-11 18:26:18 +02:00
parent 0f920d6396
commit a0f814e75b
+9 -1
View File
@@ -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;
}