summaryrefslogtreecommitdiff
path: root/src/irc/proxy/listen.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-11-09 21:22:56 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-11-09 21:22:56 +0000
commit76ca80087b40f34ff30f67be57c63f5a1ce15a64 (patch)
tree53bbeabdf37b8a3e39d4d05fb557b31aacf5444c /src/irc/proxy/listen.c
parent4b7bcde5775eac0b2edbc4fa45a076585103af6b (diff)
downloadirssi-76ca80087b40f34ff30f67be57c63f5a1ce15a64.zip
Hide IRSSILAG notices from clients
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@821 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/proxy/listen.c')
-rw-r--r--src/irc/proxy/listen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c
index a8c04e4d..0aeb553c 100644
--- a/src/irc/proxy/listen.c
+++ b/src/irc/proxy/listen.c
@@ -350,8 +350,11 @@ static void sig_server_event(const char *line, IRC_SERVER_REC *server,
if (g_strcasecmp(event, "event ping") == 0 ||
(g_strcasecmp(event, "event privmsg") == 0 &&
- strstr(args, " :\001") != NULL)) {
- /* We want to answer ourself to PINGs and CTCPs */
+ strstr(args, " :\001") != NULL) ||
+ (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);
return;
}