| 2128 | } |
| 2129 | |
| 2130 | void ExternalCommandProcessor::ChangeCustomUserVar(double, const std::vector<String>& arguments) |
| 2131 | { |
| 2132 | User::Ptr user = User::GetByName(arguments[0]); |
| 2133 | |
| 2134 | if (!user) |
| 2135 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot change custom var for non-existent user '" + arguments[0] + "'")); |
| 2136 | |
| 2137 | Log(LogNotice, "ExternalCommandProcessor") |
| 2138 | << "Changing custom var '" << arguments[1] << "' for user '" << arguments[0] << "' to value '" << arguments[2] << "'"; |
| 2139 | |
| 2140 | user->ModifyAttribute("vars." + arguments[1], arguments[2]); |
| 2141 | } |
| 2142 | |
| 2143 | void ExternalCommandProcessor::ChangeCustomCheckcommandVar(double, const std::vector<String>& arguments) |
| 2144 | { |
nothing calls this directly
no test coverage detected