summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 16:41:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 16:41:00 +0300
commit56178bf525b07582389493158ac90e2ab7721571 (patch)
tree42a1696e108453eaad3e80ca68151c7f8b10e8fd /src/actions
parent7891954d9767df4fc4ecf1c44830ca9c18a34e10 (diff)
downloadmv-56178bf525b07582389493158ac90e2ab7721571.tar.gz
mv-56178bf525b07582389493158ac90e2ab7721571.tar.bz2
mv-56178bf525b07582389493158ac90e2ab7721571.tar.xz
mv-56178bf525b07582389493158ac90e2ab7721571.zip
Move chat command /hack into actions.
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 fb4577719..bb174cb07 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -680,4 +680,10 @@ impHandler(gm)
return true;
}
+impHandler(hack)
+{
+ Net::getChatHandler()->sendRaw(event.args);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 06e288d7a..cc9a0e172 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -69,6 +69,7 @@ namespace Actions
decHandler(talkRaw);
decHandler(talkPet);
decHandler(gm);
+ decHandler(hack);
} // namespace Actions
#undef decHandler