- strprintf(&scriptOnConnectParams,
- "%s \"%s\" \"%s\" \"%f\" \"%d\" \"%s\"",
- scriptOnConnect.c_str(),
- login.c_str(),
- inet_ntostring(currIP).c_str(),
- cash.ConstData(),
- id,
- dirsStr);
+
+ std::vector<std::string>::const_iterator it(settings->GetScriptParams().begin());
+ while (it != settings->GetScriptParams().end())
+ {
+ scriptOnConnectParams += GetParamValue(it->c_str());
+ }
+
+// strprintf(&scriptOnConnectParams,
+// "%s \"%s\" \"%s\" \"%f\" \"%d\" \"%s\"",
+// scriptOnConnect.c_str(),
+// login.c_str(),
+// inet_ntostring(currIP).c_str(),
+// cash.ConstData(),
+// id,
+// dirsStr);