]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Generate WALLOPS message on operator-generated SQUIT
authorAlexander Barton <alex@barton.de>
Tue, 19 May 2009 21:06:28 +0000 (23:06 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 30 Sep 2009 14:00:06 +0000 (16:00 +0200)
src/ngircd/irc-server.c

index ca2502dc62414008abdd558a715d458436aa8b2c..a0a94688526d8326f03d051678cd08db824d307d 100644 (file)
@@ -332,6 +332,10 @@ IRC_SQUIT(CLIENT * Client, REQUEST * Req)
                /* We are directly connected to the target server, so we
                 * have to tear down the connection and to inform all the
                 * other remaining servers in the network */
+               IRC_SendWallops(Client_ThisServer(), Client_ThisServer(),
+                               "Received SQUIT %s from %s: %s",
+                               Req->argv[0], Client_ID(from),
+                               Req->argv[1][0] ? Req->argv[1] : "-");
                Conn_Close(con, NULL, msg, true);
                if (con == Client_Conn(Client))
                        return DISCONNECTED;