about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2005-08-29 11:11:15 +0000
committerAlexander Barton <alex@barton.de>2005-08-29 11:11:15 +0000
commitc12dc45f17336141bb947275e12125e5736cf0b3 (patch)
tree4b6600afcef27fdb6f345792e336f8bbcee485ef
parenta2e4eb5aafee30a3df32472454dedd2707ca1b2c (diff)
downloadngircd-c12dc45f17336141bb947275e12125e5736cf0b3.tar.gz
ngircd-c12dc45f17336141bb947275e12125e5736cf0b3.zip
Added prefix to connection statistic NOTICE.
-rw-r--r--src/ngircd/conn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 3f7b1518..165d4678 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -17,7 +17,7 @@
 #include "portab.h"
 #include "io.h"
 
-static char UNUSED id[] = "$Id: conn.c,v 1.174 2005/08/28 16:51:20 fw Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.175 2005/08/29 11:11:15 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -741,8 +741,9 @@ Conn_Close( CONN_ID Idx, char *LogMsg, char *FwdMsg, bool InformClient )
 		/* Send statistics to client if registered as user: */
 		if ((c != NULL) && (Client_Type(c) == CLIENT_USER)) {
 			Conn_WriteStr( Idx,
-			 "NOTICE %s :%sConnection statistics: client %.1f kb, server %.1f kb.",
-			 Client_ID(Client_ThisServer()), NOTICE_TXTPREFIX,
+			 ":%s NOTICE %s :%sConnection statistics: client %.1f kb, server %.1f kb.",
+			 Client_ID(Client_ThisServer()), Client_ID(c),
+			 NOTICE_TXTPREFIX,
 			 (double)My_Connections[Idx].bytes_in / 1024,
 			 (double)My_Connections[Idx].bytes_out / 1024);
 		}