From: Naffanya Date: Mon, 29 Jul 2013 22:25:33 +0000 (+0300) Subject: Correction of adding parameters' values in methods USER_IMPL::Connect, USER_IMPL... X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/1e7addb5fc4f1251928673545764b012373a9334?ds=sidebyside;hp=d8dedc3fe2ad14db7d4772ebf665ef1d42e63eb1 Correction of adding parameters' values in methods USER_IMPL::Connect, USER_IMPL::Disconnect --- 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());