summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-24 22:06:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-24 22:06:47 +0300
commitd9dc86b8dce433947c81ba87ad0bad83d4bc96f6 (patch)
tree02afde544303ab88ab5a1f726d7c3a6f5794e341 /src/commands.cpp
parent4805bee18392b56f39be68b0d6a0384cbda0f846 (diff)
downloadmanaverse-d9dc86b8dce433947c81ba87ad0bad83d4bc96f6.tar.gz
manaverse-d9dc86b8dce433947c81ba87ad0bad83d4bc96f6.tar.bz2
manaverse-d9dc86b8dce433947c81ba87ad0bad83d4bc96f6.tar.xz
manaverse-d9dc86b8dce433947c81ba87ad0bad83d4bc96f6.zip
Move chat command /erase into actions.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 031bcd0a9..953f2679d 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -384,50 +384,6 @@ impHandler0(present)
return false;
}
-impHandler(erase)
-{
- if (event.args.empty())
- {
- if (event.tab)
- {
- // TRANSLATORS: erase command
- event.tab->chatLog(_("Please specify a name."), ChatMsgType::BY_SERVER);
- }
- return true;
- }
-
- if (player_relations.getRelation(event.args) == PlayerRelation::ERASED)
- {
- if (event.tab)
- {
- // TRANSLATORS: erase command
- event.tab->chatLog(_("Player already erased!"), ChatMsgType::BY_SERVER);
- }
- return true;
- }
- else
- {
- player_relations.setRelation(event.args, PlayerRelation::ERASED);
- }
-
- if (event.tab)
- {
- if (player_relations.getRelation(event.args) == PlayerRelation::ERASED)
- {
- // TRANSLATORS: erase command
- event.tab->chatLog(_("Player successfully erased!"),
- ChatMsgType::BY_SERVER);
- }
- else
- {
- // TRANSLATORS: erase command
- event.tab->chatLog(_("Player could not be erased!"),
- ChatMsgType::BY_SERVER);
- }
- }
- return true;
-}
-
impHandler0(quit)
{
// quit();