From 60c983e043b9ec502b65785306887003f5bcb27b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 16:32:44 +0300 Subject: Move chat command /uploadlog 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 7eab1f928..8e2f3623b 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1155,4 +1155,13 @@ impHandler(uploadServerConfig) return true; } +impHandler(uploadLog) +{ + uploadFile(_("Uploaded log into:"), + settings.logFileName, + "?txt", + event.tab); + return true; +} + } // namespace Actions diff --git a/src/actions/actions.h b/src/actions/actions.h index 2997180c4..f241b321c 100644 --- a/src/actions/actions.h +++ b/src/actions/actions.h @@ -86,6 +86,7 @@ namespace Actions decHandler(createItems); decHandler(uploadConfig); decHandler(uploadServerConfig); + decHandler(uploadLog); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2