diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 9 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index ec377be79..52855d06e 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1491,4 +1491,13 @@ impHandler(commandNpcMove) return true; } +impHandler(commandNpcHide) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->hideNpc(args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index f05921487..735338270 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -132,6 +132,7 @@ namespace Actions decHandler(commandJail); decHandler(commandUnjail); decHandler(commandNpcMove); + decHandler(commandNpcHide); } // namespace Actions #undef decHandler |