Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_stats.c
index e2124945b0e62e3249bf00c62cee6d2422b6b2a5..d0bba3020925207aae68bb7bb983cd4c8afcc817 100644 (file)
@@ -94,6 +94,7 @@
 #include "ircd.h"
 #include "ircd_alloc.h"
 #include "ircd_chattr.h"
+#include "ircd_events.h"
 #include "ircd_features.h"
 #include "ircd_policy.h"
 #include "ircd_reply.h"
@@ -263,6 +264,15 @@ int m_stats(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 #endif
       break;
 
+    case 'E':
+    case 'e': /* report engine name */
+#ifdef HEAD_IN_SAND_STATS_E
+      return m_not_oper(sptr,cptr,parc,parv);
+#else
+      send_reply(sptr, RPL_STATSENGINE, engine_name());
+#endif
+      break;
+
     case 'G':
     case 'g': /* send glines */
 #ifdef HEAD_IN_SAND_STATS_G
@@ -590,6 +600,10 @@ int ms_stats(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
     case 'c':
       report_configured_links(sptr, CONF_SERVER);
       break;
+    case 'E':
+    case 'e': /* report engine name */
+      send_reply(sptr, RPL_STATSENGINE, engine_name());
+      break;
     case 'G':
     case 'g': /* send glines */
       gline_stats(sptr);
@@ -809,6 +823,10 @@ int mo_stats(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
     case 'c':
       report_configured_links(sptr, CONF_SERVER);
       break;
+    case 'E':
+    case 'e': /* report engine name */
+      send_reply(sptr, RPL_STATSENGINE, engine_name());
+      break;
     case 'G':
     case 'g': /* send glines */
       gline_stats(sptr);