summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-25 00:53:34 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-25 00:53:34 +0300
commit14800b09f0cc47ab4452039c45ba99295a40e2d8 (patch)
tree1e5ff4911580cd509d9f21bf8f8ff942302e3a81 /src/actions
parentd0967473d6f1e356592e8adbe46fcbbe04c60393 (diff)
downloadmanaplus-14800b09f0cc47ab4452039c45ba99295a40e2d8.tar.gz
manaplus-14800b09f0cc47ab4452039c45ba99295a40e2d8.tar.bz2
manaplus-14800b09f0cc47ab4452039c45ba99295a40e2d8.tar.xz
manaplus-14800b09f0cc47ab4452039c45ba99295a40e2d8.zip
Add chat command /saveposition. Also add it to player context menu.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp6
-rw-r--r--src/actions/commands.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index fe53ffa61..cdb1fa69c 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1368,4 +1368,10 @@ impHandler(commandSpawnEvilClone)
return true;
}
+impHandler(commandSavePosition)
+{
+ adminHandler->savePosition(event.args);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index ee4492818..130efec9a 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -116,6 +116,7 @@ namespace Actions
decHandler(commandSpawnClone);
decHandler(commandSpawnSlaveClone);
decHandler(commandSpawnEvilClone);
+ decHandler(commandSavePosition);
} // namespace Actions
#undef decHandler