diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-27 16:41:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-27 16:41:00 +0300 |
commit | 56178bf525b07582389493158ac90e2ab7721571 (patch) | |
tree | 42a1696e108453eaad3e80ca68151c7f8b10e8fd /src/actions | |
parent | 7891954d9767df4fc4ecf1c44830ca9c18a34e10 (diff) | |
download | manaplus-56178bf525b07582389493158ac90e2ab7721571.tar.gz manaplus-56178bf525b07582389493158ac90e2ab7721571.tar.bz2 manaplus-56178bf525b07582389493158ac90e2ab7721571.tar.xz manaplus-56178bf525b07582389493158ac90e2ab7721571.zip |
Move chat command /hack into actions.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 6 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
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 |