1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Hide IRSSILAG notices from clients

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@821 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-09 21:22:56 +00:00 committed by cras
parent 4b7bcde577
commit 76ca80087b

View File

@ -350,8 +350,11 @@ static void sig_server_event(const char *line, IRC_SERVER_REC *server,
if (g_strcasecmp(event, "event ping") == 0 || if (g_strcasecmp(event, "event ping") == 0 ||
(g_strcasecmp(event, "event privmsg") == 0 && (g_strcasecmp(event, "event privmsg") == 0 &&
strstr(args, " :\001") != NULL)) { strstr(args, " :\001") != NULL) ||
/* We want to answer ourself to PINGs and CTCPs */ (g_strcasecmp(event, "event notice") == 0 &&
strstr(args, " :\001IRSSILAG") != NULL)) {
/* We want to answer ourself to PINGs and CTCPs,
also don't let clients see replies to IRSSILAG requests */
g_free(event); g_free(event);
return; return;
} }