| 2170 | } |
| 2171 | |
| 2172 | std::string Core::GetAliasCommand(const std::string &name, bool ignore_params) |
| 2173 | { |
| 2174 | std::lock_guard<std::recursive_mutex> lock(alias_mutex); |
| 2175 | if (!IsAlias(name) || aliases[name].empty()) |
| 2176 | return name; |
| 2177 | if (ignore_params) |
| 2178 | return aliases[name][0]; |
| 2179 | return join_strings(" ", aliases[name]); |
| 2180 | } |
no test coverage detected