X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/53e3e5c4fa09c1ca7e1cb44054ec38441125868c..9ff5d2bf8c72ad82b68761b920475ac8175791c6:/projects/stargazer/user_property.h diff --git a/projects/stargazer/user_property.h b/projects/stargazer/user_property.h index 57e11a49..3ea1be45 100644 --- a/projects/stargazer/user_property.h +++ b/projects/stargazer/user_property.h @@ -213,8 +213,6 @@ if (value == newValue) typename set *>::iterator ni; -//printf("USER_PROPERTY::operator= (const varT& rhs)\n"); - varT oldVal = value; ni = beforeNotifiers.begin(); @@ -435,13 +433,7 @@ stgLogger("%s User \'%s\': \'%s\' parameter changed from \'%s\' to \'%s\'. %s", newValue.c_str(), msg.c_str()); - -/*char userLogMsg[2048]; -sprintf(userLogMsg, "\'%s\' parameter changed from \'%s\' to \'%s\'. %s", - parameter.c_str(), oldValue.c_str(), - newValue.c_str(), msg.c_str());*/ store->WriteUserChgLog(login, admin.GetLogin(), admin.GetAdminIP(), parameter, oldValue, newValue, msg); -//store->WriteLogString(userLogMsg, login); } //------------------------------------------------------------------------- template @@ -449,7 +441,7 @@ void USER_PROPERTY_LOGGED::OnChange(const string & login, const string & paramName, const string & oldValue, const string & newValue, - const ADMIN &) + const ADMIN & admin) { string str1; @@ -457,7 +449,7 @@ str1 = settings->GetConfDir() + "/OnChange"; if (access(str1.c_str(), X_OK) == 0) { - string str2("\"" + str1 + "\" \"" + login + "\" \"" + paramName + "\" \"" + oldValue + "\" \"" + newValue + "\""); + string str2("\"" + str1 + "\" \"" + login + "\" \"" + paramName + "\" \"" + oldValue + "\" \"" + newValue + "\" \"" + admin.GetLogin() + "\" \"" + admin.GetAdminIPStr() + "\""); ScriptExec(str2); } else