History

Initial cut

No script work yet, just first stab at underpinnings

David Kelly committed 10 years ago

Commit 285520d1 parent 5b91c8f12 files · +94 −4Browse files

Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 12 files). Show all

Unified · Split

libraries/script-engine/src/UsersScriptingInterface.cpp+5−0
@@ -29,6 +29,11 @@ void UsersScriptingInterface::kick(const QUuid& nodeID) { · 28 unmodified lines
29 DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID);29 DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID);
30}30}
31 31
32void UsersScriptingInterface::mute(const QUuid& nodeID) {
33 // ask the NodeList to mute the user with the given session ID
34 DependencyManager::get<NodeList>()->muteNodeBySessionID(nodeID);
35}
36
32bool UsersScriptingInterface::getCanKick() {37bool UsersScriptingInterface::getCanKick() {
33 // ask the NodeList to return our ability to kick38 // ask the NodeList to return our ability to kick
34 return DependencyManager::get<NodeList>()->getThisNodeCanKick();39 return DependencyManager::get<NodeList>()->getThisNodeCanKick();