aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-13 17:09:23 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-22 13:02:08 +0200
commit153f07fdfb60ddfeeb3bdb59e5f061e870334d3a (patch)
tree961d5038cdb5dd644cc8925b344c47182c7794f5 /src/game.cpp
parent7e610aece52ad547d4ae263aff5297342d5a4bff (diff)
downloadminetest-153f07fdfb60ddfeeb3bdb59e5f061e870334d3a.tar.gz
minetest-153f07fdfb60ddfeeb3bdb59e5f061e870334d3a.tar.bz2
minetest-153f07fdfb60ddfeeb3bdb59e5f061e870334d3a.zip
Remove distinction between /# and / commands
No need to make the server command syntax more complicated than necessary. If the need ever arise, we'll find some other way to distinguish the client commands. Also, the /# syntax is deprecated and will be made obsolete in time.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/game.cpp b/src/game.cpp
index ab3852137..22fab706c 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -114,18 +114,6 @@ struct TextDestChat : public TextDest
// Discard empty line
if(text == L"")
return;
-
- // Parse command (server command starts with "/#")
- if(text[0] == L'/' && text[1] != L'#')
- {
- std::wstring reply = L"Local: ";
-
- reply += L"Local commands not yet supported. "
- L"Server prefix is \"/#\".";
-
- m_client->addChatMessage(reply);
- return;
- }
// Send to others
m_client->sendChatMessage(text);