From 655387286ab0517c9cdb905d67fad74f80cda241 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 11 Jul 2012 00:45:22 +0200 Subject: cmd_commands Don't show server only commands to users --- src/commands/cmd_commands.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/commands/cmd_commands.cpp') diff --git a/src/commands/cmd_commands.cpp b/src/commands/cmd_commands.cpp index 13bd3fab8..36408b363 100644 --- a/src/commands/cmd_commands.cpp +++ b/src/commands/cmd_commands.cpp @@ -48,6 +48,10 @@ CmdResult CommandCommands::Handle (const std::vector&, User *user) list.reserve(ServerInstance->Parser->cmdlist.size()); for (Commandtable::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++) { + // Don't show S2S commands to users + if (i->second->flags_needed == FLAG_SERVERONLY) + continue; + Module* src = i->second->creator; char buffer[MAXBUF]; snprintf(buffer, MAXBUF, ":%s %03d %s :%s %s %d %d", -- cgit v1.2.3