aboutsummaryrefslogtreecommitdiff
path: root/src/servercommand.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-30 01:45:23 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-03-30 01:45:23 +0300
commitb9ffb5f30d64d365e6792d0d3acff552d9fcd0fd (patch)
treeb4b3c2d055d7ff39688e0a51f57f06106511370b /src/servercommand.cpp
parent9d456ca87a96d9150c87e1de760e2668c128b459 (diff)
downloadminetest-b9ffb5f30d64d365e6792d0d3acff552d9fcd0fd.tar.gz
minetest-b9ffb5f30d64d365e6792d0d3acff552d9fcd0fd.tar.bz2
minetest-b9ffb5f30d64d365e6792d0d3acff552d9fcd0fd.zip
minetest.register_chatcommand(cmd, def)
Diffstat (limited to 'src/servercommand.cpp')
-rw-r--r--src/servercommand.cpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/servercommand.cpp b/src/servercommand.cpp
index c5b242b2e..48ada56fe 100644
--- a/src/servercommand.cpp
+++ b/src/servercommand.cpp
@@ -376,26 +376,7 @@ std::wstring processServerCommand(ServerCommandContext *ctx)
std::wostringstream os(std::ios_base::binary);
ctx->flags = SEND_TO_SENDER; // Default, unless we change it.
- u64 privs = ctx->privs;
-
- if(ctx->parms.size() == 0 || ctx->parms[0] == L"help")
- {
- os<<L"-!- Available commands: ";
- os<<L"me status privs";
- if(privs & PRIV_SERVER)
- os<<L" shutdown setting clearobjects";
- if(privs & PRIV_SETTIME)
- os<<L" time";
- if(privs & PRIV_TELEPORT)
- os<<L" teleport";
- if(privs & PRIV_PRIVS)
- os<<L" grant revoke";
- if(privs & PRIV_BAN)
- os<<L" ban unban";
- if(privs & PRIV_PASSWORD)
- os<<L" setpassword clearpassword";
- }
- else if(ctx->parms[0] == L"status")
+ if(ctx->parms[0] == L"status")
cmd_status(os, ctx);
else if(ctx->parms[0] == L"privs")
cmd_privs(os, ctx);