summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 16:32:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 16:32:44 +0300
commit60c983e043b9ec502b65785306887003f5bcb27b (patch)
treef563332745eea7bb17fa31046db74364e4183ad4 /src/actions
parentde2e84a86c3419a41de594951c452e25dde60d86 (diff)
downloadplus-60c983e043b9ec502b65785306887003f5bcb27b.tar.gz
plus-60c983e043b9ec502b65785306887003f5bcb27b.tar.bz2
plus-60c983e043b9ec502b65785306887003f5bcb27b.tar.xz
plus-60c983e043b9ec502b65785306887003f5bcb27b.zip
Move chat command /uploadlog into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp9
-rw-r--r--src/actions/actions.h1
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