| 2120 | } |
| 2121 | |
| 2122 | bool Core::AddAlias(const std::string &name, const std::vector<std::string> &command, bool replace) |
| 2123 | { |
| 2124 | std::lock_guard<std::recursive_mutex> lock(alias_mutex); |
| 2125 | if (!IsAlias(name) || replace) |
| 2126 | { |
| 2127 | aliases[name] = command; |
| 2128 | return true; |
| 2129 | } |
| 2130 | return false; |
| 2131 | } |
| 2132 | |
| 2133 | bool Core::RemoveAlias(const std::string &name) |
| 2134 | { |