]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-info.c
New numeric RPL_STATSCONN (250): display connection statistics
[ngircd-alex.git] / src / ngircd / irc-info.c
index 28722e71fca86b388a3a63a5166afed15c5c4790..7d7bb884ba95349749bbfce947fba996908481c8 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2009 Alexander Barton (alex@barton.de)
+ * Copyright (c)2001-2010 Alexander Barton <alex@barton.de>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -1176,6 +1176,10 @@ IRC_Send_LUSERS( CLIENT *Client )
        if(! IRC_WriteStrClient(Client, RPL_NETUSERS_MSG, Client_ID(Client),
                        cnt, max, cnt, max))
                return DISCONNECTED;
+       /* Connection counters */
+       if (! IRC_WriteStrClient(Client, RPL_STATSCONN_MSG, Client_ID(Client),
+                       Conn_CountMax(), Conn_CountAccepted()))
+               return DISCONNECTED;
 #endif
        
        return CONNECTED;