Module: ngircd.git Branch: master Commit: 881b9af2512a9707cdd599f84628a03c4e22cf2b URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=881b9...
Author: Alexander Barton alex@barton.de Date: Tue May 19 23:06:28 2009 +0200
Generate WALLOPS message on operator-generated SQUIT
---
src/ngircd/irc-server.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/ngircd/irc-server.c b/src/ngircd/irc-server.c index ca2502d..a0a9468 100644 --- a/src/ngircd/irc-server.c +++ b/src/ngircd/irc-server.c @@ -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;