From de2e84a86c3419a41de594951c452e25dde60d86 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 16:26:22 +0300 Subject: Move chat command /uploadserverconfig into actions. --- src/actions/actions.cpp | 9 +++++++++ src/actions/actions.h | 1 + 2 files changed, 10 insertions(+) (limited to 'src/actions') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 8406f236e..7eab1f928 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1146,4 +1146,13 @@ impHandler(uploadConfig) return true; } +impHandler(uploadServerConfig) +{ + uploadFile(_("Uploaded server config into:"), + serverConfig.getFileName(), + "?xml", + event.tab); + return true; +} + } // namespace Actions diff --git a/src/actions/actions.h b/src/actions/actions.h index dcaf043d9..2997180c4 100644 --- a/src/actions/actions.h +++ b/src/actions/actions.h @@ -85,6 +85,7 @@ namespace Actions #endif decHandler(createItems); decHandler(uploadConfig); + decHandler(uploadServerConfig); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2