From: michael Date: Fri, 17 Jul 2015 19:11:38 +0000 (+0000) Subject: - Due to security reasons the PROTOCOLS command has been removed again X-Git-Tag: 1.1.0~5 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=318793e9c041030ffd44d1e58df165b4150e736f;p=hopm.git - Due to security reasons the PROTOCOLS command has been removed again git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.1.x@6295 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/NEWS b/NEWS index 98c7f20..8ea8b78 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ -- Noteworthy changes in version 1.1.0 (????-??-??) o) options::pidfile and options::scanlog can now be relative pathnames +o) Due to security reasons the PROTOCOLS command has been removed again -- Noteworthy changes in version 1.1.0beta1 (2015-07-02) diff --git a/README b/README index 9d1d6c6..2f5d782 100644 --- 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. diff --git a/src/opercmd.c b/src/opercmd.c index 95cdf92..5ee0bf1 100644 --- a/src/opercmd.c +++ b/src/opercmd.c @@ -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)