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());
std::vector<std::string>::const_iterator it(settings->GetScriptParams().begin());
while (it != settings->GetScriptParams().end())
{
+ scriptOnDisonnectParams += " \"";
scriptOnDisonnectParams += GetParamValue(it->c_str());
+ scriptOnDisonnectParams += "\"";
}
ScriptExec(scriptOnDisonnectParams.c_str());