diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-27 16:32:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-27 16:32:44 +0300 |
commit | 60c983e043b9ec502b65785306887003f5bcb27b (patch) | |
tree | f563332745eea7bb17fa31046db74364e4183ad4 /src/actions | |
parent | de2e84a86c3419a41de594951c452e25dde60d86 (diff) | |
download | mv-60c983e043b9ec502b65785306887003f5bcb27b.tar.gz mv-60c983e043b9ec502b65785306887003f5bcb27b.tar.bz2 mv-60c983e043b9ec502b65785306887003f5bcb27b.tar.xz mv-60c983e043b9ec502b65785306887003f5bcb27b.zip |
Move chat command /uploadlog into actions.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 9 | ||||
-rw-r--r-- | src/actions/actions.h | 1 |
2 files changed, 10 insertions, 0 deletions
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 |