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());
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());