]> 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 22:25:33 +0000 (01:25 +0300)
committerNaffanya <naffanya@naffanya.(none)>
Mon, 29 Jul 2013 22:25:33 +0000 (01:25 +0300)
projects/stargazer/user_impl.cpp

index f3e234200df5890b1eeb2c91ce65583ec1a2cd80..d56cd227a2fce6909a10af1a993430fe8050f7a8 100644 (file)
@@ -601,9 +601,7 @@ if (!fakeConnect)
         std::vector<std::string>::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<std::string>::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());