bool RegisteredCommands::Remove( LuaMain *lua, const std::string& key ) { Command *cmd = Get( key.c_str(), lua ); if ( !cmd ) return false; // Delete it and remove it from our list cmd->Destroy(); return true; }