summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-08 21:23:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-08 21:23:22 +0300
commit271558cf6114d70da75ed474d7c04fa707ae3369 (patch)
tree29f87f671e735b777cd0b469798935d8621235df
parent3b44da50baf9b321f040c5e5b5b0d7fb12ab7d5f (diff)
misprint fixed
-rw-r--r--plugins/Dropbox/src/dropbox_commands.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/Dropbox/src/dropbox_commands.cpp b/plugins/Dropbox/src/dropbox_commands.cpp
index 397daecf49..469b17256f 100644
--- a/plugins/Dropbox/src/dropbox_commands.cpp
+++ b/plugins/Dropbox/src/dropbox_commands.cpp
@@ -25,10 +25,9 @@ void CDropbox::CommandList(void *arg)
char path[MAX_PATH];
PreparePath((char*)param->data, path);
if (path[0] == NULL) {
- CMStringA error(FORMAT, T2Utf(TranslateT("\"%s\" command has invalid parameter.\nUse \"/help\" for more info.")), "/share");
+ CMStringA error(FORMAT, T2Utf(TranslateT("\"%s\" command has invalid parameter.\nUse \"/help\" for more info.")), "/list");
ProtoBroadcastAck(MODULE, param->hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, param->hProcess, 0);
ProtoChainSend(param->instance->GetDefaultContact(), PSR_MESSAGE, 0, (LPARAM)error.GetBuffer());
-
return;
}
@@ -74,7 +73,6 @@ void CDropbox::CommandShare(void *arg)
CMStringA error(FORMAT, T2Utf(TranslateT("\"%s\" command has invalid parameter.\nUse \"/help\" for more info.")), "/share");
ProtoBroadcastAck(MODULE, param->hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, param->hProcess, 0);
ProtoChainSend(param->instance->GetDefaultContact(), PSR_MESSAGE, 0, (LPARAM)error.GetBuffer());
-
return;
}
@@ -108,7 +106,6 @@ void CDropbox::CommandSearch(void *arg)
CMStringA error(FORMAT, T2Utf(TranslateT("\"%s\" command has invalid parameter.\nUse \"/help\" for more info.")), "/search");
ProtoBroadcastAck(MODULE, param->hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, param->hProcess, 0);
ProtoChainSend(param->instance->GetDefaultContact(), PSR_MESSAGE, 0, (LPARAM)error.GetBuffer());
-
return;
}
@@ -154,9 +151,9 @@ void CDropbox::CommandDelete(void *arg)
CMStringA error(FORMAT, T2Utf(TranslateT("\"%s\" command has invalid parameter.\nUse \"/help\" for more info.")), "/delete");
ProtoBroadcastAck(MODULE, param->hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, param->hProcess, 0);
ProtoChainSend(param->instance->GetDefaultContact(), PSR_MESSAGE, 0, (LPARAM)error.GetBuffer());
-
return;
}
+
ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
DeleteRequest request(token, path);
NLHR_PTR response(request.Send(param->instance->hNetlibConnection));
@@ -176,4 +173,4 @@ void CDropbox::CommandDelete(void *arg)
}
ProtoBroadcastAck(MODULE, param->hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, param->hProcess, 0);
-} \ No newline at end of file
+}