| 1088 | } |
| 1089 | |
| 1090 | void PluginManager::unregisterCommands( Plugin * p ) |
| 1091 | { |
| 1092 | std::lock_guard<std::mutex> lock{*cmdlist_mutex}; |
| 1093 | std::vector <PluginCommand> & cmds = p->commands; |
| 1094 | for(size_t i = 0; i < cmds.size();i++) |
| 1095 | { |
| 1096 | command_map.erase(cmds[i].name); |
| 1097 | } |
| 1098 | } |
| 1099 | |
| 1100 | void PluginManager::doSaveData(color_ostream &out) |
| 1101 | { |