From d8dedc3fe2ad14db7d4772ebf665ef1d42e63eb1 Mon Sep 17 00:00:00 2001 From: Naffanya Date: Mon, 29 Jul 2013 15:56:23 +0300 Subject: [PATCH] Correction of adding parameters' values in methods USER_IMPL::Connect, USER_IMPL::Disconnect --- projects/stargazer/user_impl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index c5629714..f3e23420 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -601,7 +601,9 @@ if (!fakeConnect) std::vector::const_iterator it(settings->GetScriptParams().begin()); while (it != settings->GetScriptParams().end()) { - scriptOnConnectParams += GetParamValue(it->c_str()); + scriptOnConnectParams += " \""; + scriptOnConnectParams += GetParamValue(it->c_str()); + scriptOnConnectParams += "\""; } ScriptExec(scriptOnConnectParams.c_str()); @@ -664,7 +666,9 @@ if (!fakeDisconnect) std::vector::const_iterator it(settings->GetScriptParams().begin()); while (it != settings->GetScriptParams().end()) { + scriptOnDisonnectParams += " \""; scriptOnDisonnectParams += GetParamValue(it->c_str()); + scriptOnDisonnectParams += "\""; } ScriptExec(scriptOnDisonnectParams.c_str()); -- 2.43.2