diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-23 20:47:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-23 20:47:15 +0300 |
commit | e6d02447113b137ce37f2331ae674371c3968e28 (patch) | |
tree | e659f4b159c991d8cbd0b167ec74486de06ae91e /src/actions | |
parent | 051b5fc10eaec4f4aec1de8e79f2feae60f0e084 (diff) | |
download | mv-e6d02447113b137ce37f2331ae674371c3968e28.tar.gz mv-e6d02447113b137ce37f2331ae674371c3968e28.tar.bz2 mv-e6d02447113b137ce37f2331ae674371c3968e28.tar.xz mv-e6d02447113b137ce37f2331ae674371c3968e28.zip |
Move chat command /who into actions.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 7 | ||||
-rw-r--r-- | src/actions/actions.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 6a8ba0d5a..73c57985c 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -70,6 +70,7 @@ #include "render/graphics.h" +#include "net/chathandler.h" #include "net/ipc.h" #include "net/net.h" #include "net/playerhandler.h" @@ -535,4 +536,10 @@ impHandler(where) return true; } +impHandler0(who) +{ + Net::getChatHandler()->who(); + return true; +} + } // namespace Actions diff --git a/src/actions/actions.h b/src/actions/actions.h index 21085ea48..db895d644 100644 --- a/src/actions/actions.h +++ b/src/actions/actions.h @@ -56,6 +56,7 @@ namespace Actions decHandler(openTrade); decHandler(ipcToggle); decHandler(where); + decHandler(who); } // namespace Actions #undef decHandler |