From a9345b413f8c67dd8d6fcfd047a786e542202116 Mon Sep 17 00:00:00 2001
From: Luke Bratch <luke@bratch.co.uk>
Date: Tue, 21 May 2019 20:50:31 +0100
Subject: Don't send "new client has successfully authenticated" NOTICE to the
 client that has just connected.

---
 blabouncer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/blabouncer.c b/blabouncer.c
index 520341d..eaa39c6 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -1243,8 +1243,8 @@ int processircmessage(SSL *server_ssl, char *str, int source, struct client *cli
                 fprintf(stderr, "Error while preparing authentication success NOTICE!\n");
                 exit(1);
               }
-              // "except" 0 since we trust this message
-              sendtoallclients(clients, alertmsg, 0, settings);
+              // "except" the current fd - we can use this as "except/sourcefd" since we set them as authed just above
+              sendtoallclients(clients, alertmsg, sourcefd, settings);
             }
           }
         } else {
-- 
cgit v1.2.3