From: Naffanya Date: Mon, 29 Jul 2013 12:56:23 +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/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 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());