From 7e3a0e3668788cc9e63b0bc7f69ce793e2680ec4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Feb 2016 18:15:58 +0300 Subject: Add chat command /showstorage. Also add show storage to player context menu. --- src/actions/commands.cpp | 6 ++++++ src/actions/commands.h | 1 + 2 files changed, 7 insertions(+) (limited to 'src/actions') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index a6be02b6a..43fca1874 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1287,4 +1287,10 @@ impHandler(commandShowStats) return true; } +impHandler(commandShowStorage) +{ + adminHandler->showStorageList(event.args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index ad03274b8..f883aa1b0 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -106,6 +106,7 @@ namespace Actions decHandler(playerCharGmCommands); decHandler(commandShowLevel); decHandler(commandShowStats); + decHandler(commandShowStorage); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2