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