- Due to security reasons the PROTOCOLS command has been removed again
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 17 Jul 2015 19:11:50 +0000 (19:11 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 17 Jul 2015 19:11:50 +0000 (19:11 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6296 82007160-df01-0410-b94d-b575c5fd34c7

README
src/opercmd.c

diff --git a/README b/README
index 9d1d6c6c778a8af105b76cdc573c2d9fdacbb7ee..2f5d782d518804029ccf70dc733d046a53e39435 100644 (file)
--- a/README
+++ b/README
@@ -70,8 +70,6 @@ botnick stats                   -- Output scan stats, uptime and client connecti
 
 botnick fdstat                  -- Output some info about file descriptors in use.
 
-botnick protocols               -- Output configured scanners and their associated protocols/ports.
-
 Also if several HOPMs are present in one channel they will all respond to !all,
 for example !all stats.
 
index 95cdf929823571fa8cd2d256ed71345c4c0ed639..5ee0bf1f056dd09fa933c106a865efed5d6e5875 100644 (file)
@@ -83,24 +83,6 @@ cmd_fdstat(char *param, const struct ChannelConf *target)
   fdstats_output(target->name);
 }
 
-static void
-cmd_protocols(char *param, const struct ChannelConf *target)
-{
-  node_t *node, *node2;
-
-  LIST_FOREACH(node, ScannerItemList->head)
-  {
-    const struct ScannerConf *sc = node->data;
-    irc_send("PRIVMSG %s :Scanner: '%s'", target->name, sc->name);
-
-    LIST_FOREACH(node2, sc->protocols->head)
-    {
-      const struct ProtocolConf *proto = node2->data;
-      irc_send("PRIVMSG %s : %s:%d", target->name, scan_gettype(proto->type), proto->port);
-    }
-  }
-}
-
 /* command_create
  *
  *    Create a Command struct.
@@ -170,12 +152,11 @@ command_parse(const char *command, const struct ChannelConf *target, const char
   char *param;  /* Parsed parameters */
   static const struct OperCommandHash COMMAND_TABLE[] =
   {
-    { "CHECK",     cmd_check     },
-    { "SCAN",      cmd_check     },
-    { "STATS",     cmd_stats     },
-    { "FDSTAT",    cmd_fdstat    },
-    { "PROTOCOLS", cmd_protocols },
-    { NULL,        NULL          }
+    { "CHECK",     cmd_check  },
+    { "SCAN",      cmd_check  },
+    { "STATS",     cmd_stats  },
+    { "FDSTAT",    cmd_fdstat },
+    { NULL,        NULL       }
   };
 
   if (OPT_DEBUG)