]> git.stg.codes - stg.git/commitdiff
Correction of adding parameters' values in methods USER_IMPL::Connect, USER_IMPL...
authorNaffanya <naffanya@naffanya.(none)>
Mon, 29 Jul 2013 12:56:23 +0000 (15:56 +0300)
committerNaffanya <naffanya@naffanya.(none)>
Mon, 29 Jul 2013 12:56:23 +0000 (15:56 +0300)
projects/stargazer/user_impl.cpp

index c5629714d4beaf6cf2de20b2625cd2bdb4a1eefe..f3e234200df5890b1eeb2c91ce65583ec1a2cd80 100644 (file)
@@ -601,7 +601,9 @@ if (!fakeConnect)
         std::vector<std::string>::const_iterator it(settings->GetScriptParams().begin());
         while (it != settings->GetScriptParams().end())
             {
         std::vector<std::string>::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());
             }
 
         ScriptExec(scriptOnConnectParams.c_str());
@@ -664,7 +666,9 @@ if (!fakeDisconnect)
         std::vector<std::string>::const_iterator it(settings->GetScriptParams().begin());
         while (it != settings->GetScriptParams().end())
             {
         std::vector<std::string>::const_iterator it(settings->GetScriptParams().begin());
         while (it != settings->GetScriptParams().end())
             {
+            scriptOnDisonnectParams += " \"";
             scriptOnDisonnectParams += GetParamValue(it->c_str());
             scriptOnDisonnectParams += GetParamValue(it->c_str());
+            scriptOnDisonnectParams += "\"";
             }
 
         ScriptExec(scriptOnDisonnectParams.c_str());
             }
 
         ScriptExec(scriptOnDisonnectParams.c_str());