From e6d02447113b137ce37f2331ae674371c3968e28 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Aug 2014 20:47:15 +0300 Subject: Move chat command /who into actions. --- src/actions/actions.cpp | 7 +++++++ src/actions/actions.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src/actions') 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 -- cgit v1.2.3-70-g09d2