From dd287e360612b175dcb2e118ed20c47902d7e630 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Nov 2015 18:59:40 +0300 Subject: Add chat command slide. New chat command: slide x, y --- src/actions/commands.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 812a9fa63..337174c25 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1049,4 +1049,17 @@ impHandler(serverConfGet) return true; } +impHandler(slide) +{ + int x = 0; + int y = 0; + + if (adminHandler && parse2Int(event.args, x, y)) + { + adminHandler->slide(x, y); + return true; + } + return false; +} + } // namespace Actions -- cgit v1.2.3-70-g09d2