aboutsummaryrefslogtreecommitdiff
path: root/src/servercommand.h
diff options
context:
space:
mode:
authorMatthew I <matttpt@gmail.com>2012-07-22 09:42:43 -0400
committerPerttu Ahola <celeron55@gmail.com>2012-08-12 16:45:58 +0300
commitb29d609b0bf54345f9c7cb8a1e3d6de6799fa147 (patch)
tree27fe7910ccc4e1487f0eb56b00868d62b41172a4 /src/servercommand.h
parent8a3c777c40e2b61c1ba561ba0c60ab8d281886d2 (diff)
downloadminetest-b29d609b0bf54345f9c7cb8a1e3d6de6799fa147.tar.gz
minetest-b29d609b0bf54345f9c7cb8a1e3d6de6799fa147.tar.bz2
minetest-b29d609b0bf54345f9c7cb8a1e3d6de6799fa147.zip
Move chat commands to Lua and remove servercommand.{cpp,h}
Commands moved: /me /status /time /shutdown /ban /clearobjects
Diffstat (limited to 'src/servercommand.h')
-rw-r--r--src/servercommand.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/servercommand.h b/src/servercommand.h
deleted file mode 100644
index c0f78a9f2..000000000
--- a/src/servercommand.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
-Part of Minetest-c55
-Copyright (C) 2010-11 celeron55, Perttu Ahola <celeron55@gmail.com>
-Copyright (C) 2011 Ciaran Gultnieks <ciaran@ciarang.com>
-
-Permission to use, copy, modify, and distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-
-#ifndef SERVERCOMMAND_HEADER
-#define SERVERCOMMAND_HEADER
-
-#include <vector>
-#include <sstream>
-#include "irrlichttypes.h"
-#include "player.h"
-#include "server.h"
-
-#define SEND_TO_SENDER (1<<0)
-#define SEND_TO_OTHERS (1<<1)
-#define SEND_NO_PREFIX (1<<2)
-
-struct ServerCommandContext
-{
- std::vector<std::wstring> parms;
- std::wstring paramstring;
- Server* server;
- ServerEnvironment *env;
- Player* player;
- u32 flags;
-
- ServerCommandContext(
- std::vector<std::wstring> parms,
- std::wstring paramstring,
- Server* server,
- ServerEnvironment *env,
- Player* player)
- : parms(parms), paramstring(paramstring),
- server(server), env(env), player(player)
- {
- }
-
-};
-
-// Process a command sent from a client. The environment and connection
-// should be locked when this is called.
-// Returns a response message, to be dealt with according to the flags set
-// in the context.
-std::wstring processServerCommand(ServerCommandContext *ctx);
-
-#endif
-
-